Advertisement
MasterGun

34

Apr 11th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. struct person {
  2.  
  3. string name;
  4. string surname;
  5. int year;
  6.  
  7. };
  8. int main(){
  9. person p1;
  10. p1.name = "Igor";
  11. p1.surname = "lol";
  12. p1.year = 69;
  13. cout << p1.name<< endl;
  14. cout<<p1.surname <<endl;
  15. cout <<p1.year << endl;
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement