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;
}
本文来自博客园,作者:童心少年,转载请注明原文链接:https://www.cnblogs.com/makeblock/p/16678047.html