C++之沙漠神殿

查看代码

#include <iostream>
#include <string>
#include "minecraft.h"
using namespace std;
int main(int argc, char** argv) {
	TxMinecraft tongxin;
	bool b=tongxin.ConnectMinecraft("tk.makeblock.net.cn","a75f0b8eeab740f0a98b46fa28c15521");
	if(!b){
		cout<<"连接失败:"<<tongxin.Back_data;
		return 1;
	}
	string chat;	
	cout<<"请输入一句话:";	
	cin>>chat; 
	cout<<"你要发送的内容是:"<<chat;
	tongxin.sendChat(chat);
    tongxin.CloseMinecraft();	
	return 0;
}
posted @ 2022-09-10 19:08  童心少年  阅读(33)  评论(0编辑  收藏  举报