Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Bot
- {
- int cordX;
- int cordY;
- int health;
- int type
- };
- Bot bots[3]{{0,0,100,10},{10,20,50,5},{5,7,10,1}};
- cout << bots[0].coordX << '\n'; // 0
- cout << bots[0].coordY << '\n'; // 0
- cout << bots[0].health << '\n'; // 100
- cout << bots[0].type << '\n'; // 10
Advertisement
Add Comment
Please, Sign In to add comment