Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <string.h>
- using namespace std;
- struct osoba
- {
- int wiek;
- string imie, nazwisko;
- }x;
- void wczytaj()
- {
- cout<<"Podaj swoj wiek: "<<endl;
- cin>>x.wiek;
- cout<<"Podaj soje imie: "<<endl;
- cin>>x.imie;
- cout<<"Podaj swoje nazwisko: "<<endl;
- cin>>x.nazwisko;
- }
- void pokaz()
- {
- cout<<x.wiek<<endl;
- cout<<x.imie<<endl;
- cout<<x.nazwisko;
- }
- int main()
- {
- wczytaj();
- pokaz();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement