Advertisement
rootuss

struktura1

Mar 3rd, 2017
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct osoba
  6. {
  7.    string imie;
  8.    string nazwisko;
  9.    int wiek;
  10. };
  11.  
  12.  
  13. int main()
  14. {
  15.     osoba jan;
  16.  
  17.     jan.imie= "Jan";
  18.     jan.nazwisko= "Kowalski";
  19.     jan.wiek= 55;
  20.  
  21.  
  22.     cout<<"Twoje imie to: "<<jan.imie<<endl;
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement