Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string>
- #include <conio.h>
- using namespace std;
- struct usb
- {
- string nik;
- string pass;
- int wiek;
- };
- int main()
- {
- usb wojtek =
- {"imie", "haslo", 20};
- usb piesel;
- piesel.nik = "pies" ;
- piesel.pass = "dog";
- piesel.wiek = 4;
- cout<<wojtek.nik<<endl<<wojtek.pass<<endl<<wojtek.wiek<<endl;
- cout<<endl<<endl;
- cout<<piesel.nik<<endl<<piesel.pass<<endl<<piesel.wiek<<endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment