#include <iostream> #include <string> #include <Windows.h> #include "minecraft.h" using namespace std; TxMinecraft mc; int main(int argc, char** argv) { bool con = mc.ConnectMinecraft("zk.makeblock.net.cn","2839fa7ac28b4f7d8952cc46c1f179ec"); if(!con){ cout<<"连接失败"; } string lb[180]; string x,y,z,id,data; lb[0]="6,0,0,251,7"; lb[1]="7,0,0,251,7"; lb[2]="8,0,0,251,7"; lb[3]="8,0,0,251,7"; lb[4]="9,0,0,251,7"; lb[5]="10,0,0,251,7"; lb[6]="11,0,0,251,7"; lb[7]="12,0,0,251,7"; lb[8]="13,0,0,251,7"; lb[9]="14,0,0,251,7"; lb[10]="15,0,0,251,7"; lb[11]="16,0,0,251,7"; lb[12]="17,0,0,251,7"; lb[13]="18,0,0,251,7"; lb[14]="18,1,0,251,7"; lb[15]="10,1,0,251,7"; lb[16]="6,1,0,251,7"; lb[17]="7,2,0,251,7"; lb[18]="8,2,0,251,7"; lb[19]="11,2,0,251,7"; lb[20]="12,2,0,251,7"; lb[21]="17,2,0,251,7"; lb[22]="8,2,0,251,7"; lb[23]="9,3,0,251,7"; lb[24]="10,3,0,251,7"; lb[25]="15,3,0,251,7"; lb[26]="16,3,0,251,7"; lb[27]="11,4,0,251,7"; lb[28]="15,4,0,251,7"; lb[29]="17,4,0,251,7"; lb[30]="18,4,0,251,7"; lb[31]="19,4,0,251,7"; lb[32]="11,5,0,251,7"; lb[33]="15,5,0,251,7"; lb[34]="16,5,0,251,7"; lb[35]="19,5,0,251,7"; lb[36]="20,5,0,251,7"; lb[37]="10,6,0,251,7"; lb[38]="16,6,0,251,7"; lb[39]="17,6,0,251,7"; lb[40]="18,6,0,251,7"; lb[41]="9,7,0,251,7"; lb[42]="17,7,0,251,7"; lb[43]="9,8,0,251,7"; lb[44]="17,8,0,251,7"; lb[45]="9,9,0,251,7"; lb[46]="17,9,0,251,7"; lb[47]="9,10,0,251,7"; lb[48]="17,10,0,251,7"; lb[49]="9,11,0,251,7"; lb[50]="10,11,0,251,7"; lb[51]="11,11,0,251,7"; lb[52]="16,11,0,251,7"; lb[53]="7,12,0,251,7"; lb[54]="8,12,0,251,7"; lb[55]="16,12,0,251,7"; lb[56]="3,13,0,251,7"; lb[57]="5,13,0,251,7"; lb[58]="6,13,0,251,7"; lb[59]="7,13,0,251,7"; lb[60]="15,13,0,251,7"; lb[61]="1,14,0,251,7"; lb[62]="2,14,0,251,7"; lb[63]="3,14,0,251,14"; lb[64]="4,14,0,251,7"; lb[64]="5,14,0,251,7"; lb[65]="10,14,0,251,7"; lb[66]="11,14,0,251,7"; lb[67]="15,14,0,251,14"; lb[68]="16,14,0,251,14"; lb[69]="20,14,0,251,14"; lb[70]="21,14,0,251,14"; lb[71]="22,14,0,251,14"; lb[72]="23,14,0,251,14"; lb[73]="1,15,0,251,7"; lb[74]="2,15,0,251,14"; lb[75]="3,15,0,251,14"; lb[76]="4,15,0,251,14"; lb[77]="5,15,0,251,7"; lb[78]="8,15,0,251,7"; lb[79]="9,15,0,251,7"; lb[80]="12,15,0,251,7"; lb[81]="13,15,0,251,14"; lb[82]="14,15,0,251,14"; lb[83]="16,15,0,251,7"; lb[84]="4,15,0,251,7"; lb[85]="19,15,0,251,7"; lb[86]="24,15,0,251,7"; lb[87]="0,16,0,251,7"; lb[88]="1,16,0,251,14"; lb[89]="2,16,0,251,14"; lb[90]="3,16,0,251,14"; lb[91]="4,16,0,251,14"; lb[92]="5,16,0,251,14"; lb[93]="6,16,0,251,7"; lb[94]="7,16,0,251,7"; lb[95]="13,16,0,251,7"; lb[96]="17,16,0,251,7"; lb[97]="18,16,0,251,7"; lb[98]="19,16,0,251,7"; lb[99]="21,16,0,251,7"; lb[100]="22,16,0,251,7"; lb[101]="24,16,0,251,7"; lb[102]="0,17,0,251,7"; lb[103]="1,17,0,251,14"; lb[104]="2,17,0,251,14"; lb[105]="3,17,0,251,7"; lb[106]="4,17,0,251,14"; lb[107]="5,17,0,251,14"; lb[108]="6,17,0,251,7"; lb[109]="10,17,0,251,7"; lb[110]="11,17,0,251,7"; lb[111]="12,17,0,251,7"; lb[112]="13,17,0,251,7"; lb[113]="14,17,0,251,7"; lb[114]="20,17,0,251,7"; lb[115]="21,17,0,251,7"; lb[116]="22,17,0,251,7"; lb[117]="25,17,0,251,7"; lb[118]="1,18,0,251,7"; lb[119]="2,18,0,251,7"; lb[120]="4,18,0,251,7"; lb[121]="5,18,0,251,7"; lb[122]="8,18,0,251,7"; lb[123]="9,18,0,251,7"; lb[124]="15,18,0,251,7"; lb[125]="20,18,0,251,7"; lb[126]="22,18,0,251,7"; lb[127]="23,18,0,251,7"; lb[128]="25,18,0,251,7"; lb[129]="6,19,0,251,7"; lb[130]="16,18,0,251,7"; lb[131]="20,18,0,251,7"; lb[132]="22,18,0,251,7"; lb[133]="23,18,0,251,7"; lb[134]="25,18,0,251,7"; lb[135]="7,19,0,251,7"; lb[136]="16,19,0,251,7"; lb[137]="20,19,0,251,7"; lb[138]="21,19,0,251,7"; lb[139]="23,19,0,251,7"; lb[140]="25,19,0,251,7"; lb[141]="6,20,0,251,7"; lb[142]="21,20,0,251,7"; lb[143]="22,20,0,251,7"; lb[144]="23,20,0,251,7"; lb[145]="25,20,0,251,7"; lb[146]="5,21,0,251,7"; lb[147]="23,21,0,251,7"; lb[148]="25,21,0,251,7"; lb[149]="5,22,0,251,7"; lb[150]="25,22,0,251,7"; lb[151]="4,23,0,251,7"; lb[152]="5,23,0,251,7"; lb[153]="14,23,0,251,7"; lb[154]="24,23,0,251,7"; lb[155]="3,24,0,251,7"; lb[156]="5,24,0,251,7"; lb[157]="14,24,0,251,7"; lb[158]="24,24,0,251,7"; lb[159]="3,25,0,251,7"; lb[160]="5,25,0,251,7"; lb[161]="24,25,0,251,7"; lb[162]="6,26,0,251,7"; lb[163]="7,26,0,251,7"; lb[164]="23,26,0,251,7"; lb[165]="9,27,0,251,7"; lb[166]="10,27,0,251,7"; lb[167]="11,27,0,251,7"; lb[168]="12,27,0,251,7"; lb[169]="13,27,0,251,7"; lb[170]="22,27,0,251,7"; lb[171]="23,27,0,251,7"; lb[172]="15,26,0,251,7"; lb[173]="16,26,0,251,7"; lb[174]="17,26,0,251,7"; lb[175]="18,26,0,251,7"; lb[176]="19,26,0,251,7"; lb[177]="20,26,0,251,7"; lb[178]="21,26,0,251,7"; lb[179]="22,26,0,251,7"; for(int i=0;i<180;i++){ cout<<i; //cout<<lb[i]; x=lb[i].substr(0,lb[i].find(",")); lb[i]=lb[i].substr(lb[i].find(",")+1); y=lb[i].substr(0,lb[i].find(",")); lb[i]=lb[i].substr(lb[i].find(",")+1); z=lb[i].substr(0,lb[i].find(",")); lb[i]=lb[i].substr(lb[i].find(",")+1); id=lb[i].substr(0,lb[i].find(",")); lb[i]=lb[i].substr(lb[i].find(",")+1); data=lb[i].substr(0,lb[i].find(",")); mc.setBlock(stoi(x),stoi(y),stoi(z),stoi(id),stoi(data)); cout<<"over"<<endl; } return 0; }
标签:cn,mc,int,asd,include,con From: https://www.cnblogs.com/w6826301/p/17436329.html