Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- struct Ply {
- char nomereg[24];
- int dinheiro;
- } Player[2];
- int main() {
- Player[0].dinheiro = 500;
- strcpy_s(Player[0].nomereg,24,"Bernardo Vieira");
- Player[1].dinheiro = 100;
- strcpy_s(Player[1].nomereg,24,"Zacarias");
- std::cout << "O meu nome e "<<Player[0].nomereg<<" e tenho "<<Player[0].dinheiro<< " euros"<<std::endl;
- std::cout << "O meu nome e "<<Player[1].nomereg<<" e tenho "<<Player[1].dinheiro<< " euros"<<std::endl;
- system("pause");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement