Guest User

Untitled

a guest
Feb 7th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <string>
  5. #include <conio.h>
  6. using namespace std;
  7.  
  8. struct usb
  9. {
  10.     string nik;
  11.     string pass;
  12.     int wiek;
  13.    
  14. };
  15.  
  16. int main()
  17. {
  18.  
  19.  
  20.     usb wojtek =
  21.     {"imie", "haslo", 20};
  22.    
  23.     usb piesel;
  24.     piesel.nik = "pies" ;
  25.     piesel.pass = "dog";
  26.     piesel.wiek = 4;
  27.    
  28.     cout<<wojtek.nik<<endl<<wojtek.pass<<endl<<wojtek.wiek<<endl;
  29.        
  30.     cout<<endl<<endl;
  31.    
  32.     cout<<piesel.nik<<endl<<piesel.pass<<endl<<piesel.wiek<<endl;
  33.    
  34.    
  35.    
  36.     system("pause");
  37.     return 0;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment