Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct person {
- string name;
- string surname;
- int year;
- };
- int main(){
- person p1;
- p1.name = "Igor";
- p1.surname = "lol";
- p1.year = 69;
- cout << p1.name<< endl;
- cout<<p1.surname <<endl;
- cout <<p1.year << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement