首页 > 其他分享 >战斗机

战斗机

时间:2023-06-24 20:13:05浏览次数:39  
标签:战斗机 cout mc int include con


 

  1 #include <iostream>
  2 #include <string>
  3 #include "minecraft.h"
  4 using namespace std;
  5 TxMinecraft mc;
  6 struct Block{
  7     int x,y,z,id,data;
  8 }
  9 
 10 int main(int argc, char** argv) {
 11     bool con=mc.ConnectMinecraft("zk","08bd17c1ea594f2684182fd956c2d172");
 12     if(!con){
 13         cout<<"失败";
 14         return 0;
 15     }
 16     Block a[500];
 17     Block b;
 18     b.x=0;
 19     b.y=2;
 20     b.z=1;
 21     b.id=144;
 22     b.data=5;
 23     a[0]=b;
 24     b.z=5;
 25     a[1]=b;
 26     b.x=-7;
 27     a[2]=b;
 28     b.x=-6;
 29     a[3]=b;
 30     b.x=-5;
 31     a[4]=b;
 32     b.x=-4;
 33     a[5]=b;
 34     b.x=-3;
 35     a[6]=b;
 36     b.x=-2;
 37     a[7]=b;
 38     b.x=-1;
 39     a[8]=b;
 40     b.x=0;
 41     a[9]=b;
 42     b.z=5;
 43     b.x=-7;
 44     a[10]=b;
 45     b.x=-6;
 46     a[11]=b;
 47     b.x=-5;
 48     a[12]=b;
 49     b.x=-4;
 50     a[13]=b;
 51     b.x=-3;
 52     a[14]=b;
 53     b.x=-2;
 54     a[15]=b;
 55     b.x=-1;
 56     a[16]=b;
 57     b.x=0;
 58     a[17]=b;
 59     //B
 60     b.x=-5;
 61     b.y=3;
 62     b.z=1;
 63     b.id=1;
 64     b.data=0;
 65     a[18]=b;
 66     b.x=-4;
 67     a[19]=b;
 68     b.x=-4;
 69     a[19]=b;
 70     b.x=-3;
 71     a[20]=b;
 72     b.x=-2;
 73     a[21]=b;
 74     b.x=-1;
 75     a[22]=b;
 76     b.x=0;
 77     a[23]=b;
 78     b.x=1;
 79     a[24]=b;
 80     b.x=2;
 81     a[25]=b;
 82     b.x=3;
 83     a[26]=b;
 84     b.x=4;
 85     a[27]=b;
 86     b.x=5;
 87     a[28]=b;
 88     b.x=6;
 89     a[29]=b;
 90     b.x=7;
 91     a[30]=b;
 92     b.z=2;
 93     b.x=-5;
 94     a[31]=b;
 95     b.x=-4;
 96     a[32]=b;
 97     b.x=-3;
 98     a[33]=b;
 99     b.x=-2;
100     a[34]=b;
101     b.x=-1;
102     a[35]=b;
103     b.x=2;
104     a[36]=b;
105     b.x=3;
106     a[37]=b;
107     b.x=4;
108     a[38]=b;
109     b.x=5;
110     a[39]=b;
111     b.x=6;
112     a[40]=b;
113     b.x=7;
114     a[41]=b;
115     b.z=4;
116     b.x=-5;
117     a[42]=b;
118     b.x=-4;
119     a[43]=b;
120     b.x=-3;
121     a[44]=b;
122     b.x=-2;
123     a[45]=b;
124     b.x=-1;
125     a[46]=b;
126     b.x=2;
127     a[47]=b;
128     b.x=3;
129     a[48]=b;
130     b.x=4;
131     a[49]=b;
132     b.x=5;
133     a[50]=b;
134     b.x=6;
135     a[51]=b;
136     b.x=7;
137     a[52]=b;
138     b.z=5;
139     b.x=-5;
140     a[53]=b;
141     b.x=-4;
142     a[54]=b;
143     b.x=-3;
144     a[55]=b;
145     b.x=-2;
146     a[56]=b;
147     b.x=-1;
148     a[57]=b;
149     b.x=0;
150     a[58]=b;
151     b.x=1;
152     a[59]=b;
153     b.x=2;
154     a[60]=b;
155     b.x=3;
156     a[61]=b;
157     b.x=4;
158     a[62]=b;
159     b.x=5;
160     a[63]=b;
161     b.x=6;
162     a[64]=b;
163     b.x=7;
164     a[65]=b;
165     b.y=4;
166     b.z=-2;
167     b.x=0;
168     a[66]=b;
169     b.x=1;
170     a[67]=b;
171     b.x=2;
172     a[68]=b;
173     b.x=3;
174     a[69]=b;
175     b.x=4;
176     a[70]=b;
177     b.x=5;
178     a[71]=b;
179     b.z=0;
180     b.x=-7;
181     a[72]=b;
182     b.x=-6;
183     a[73]=b;
184     b.x=-5;
185     a[74]=b;
186     b.x=-4;
187     a[75]=b;
188     b.x=-3;
189     a[76]=b;
190     b.x=-2;
191     a[77]=b;
192     b.x=-1;
193     a[78]=b;
194     b.x=0;
195     a[79]=b;
196     b.x=1;
197     a[80]=b;
198     b.x=2;
199     a[81]=b;
200     b.x=3;
201     a[82]=b;
202     b.x=4;
203     a[83]=b;
204     b.x=5;
205     a[84]=b;
206     b.x=6;
207     a[85]=b;
208     b.x=7;
209     a[86]=b;
210     b.z=1;
211     b.x=-5;
212     a[87]=b;
213     b.x=-4;
214     a[88]=b;
215     b.x=-3;
216     a[89]=b;
217     b.x=-2;
218     a[90]=b;
219     b.x=-1;
220     a[91]=b;
221     b.x=0;
222     a[92]=b;
223     b.x=1;
224     a[93]=b;
225     b.x=2;
226     a[94]=b;
227     b.x=3;
228     a[95]=b;
229     b.x=4;
230     a[96]=b;
231     b.x=5;
232     a[97]=b;
233     b.x=6;
234     a[98]=b;
235     b.x=7;
236     a[99]=b;
237     b.x=8;
238     a[100]=b;
239     b.x=10;
240     a[101]=b;
241     b.x=11;
242     a[102]=b;
243     cout<<"坐标";
244     cin>>x>>y>>z;
245     return 0;
246 }

 

标签:战斗机,cout,mc,int,include,con
From: https://www.cnblogs.com/fushuxuan/p/17501622.html

相关文章

  • 战斗机
    #include<iostream>#include<string>#include"Windows.h"#include"minecraft.h"#include<cstring>TxMinecraftmc;usingnamespacestd;structBlock{intx;inty;intz;intid;intdata;}......