Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <conio.h>
- #include <stdio.h>
- using namespace std;
- struct user{
- string imie;
- string nazwisko;
- string nazwa;
- string haslo;
- };
- int main(){
- user jonasz16 =
- {
- "Piotr",
- "Januszewski",
- "jonasz16",
- "12ab$73"
- };
- user andrzej112 =
- {
- "Andrzej",
- "Nowicki",
- "andrzej112",
- "zaq1@WSX"
- };
- user nowy;
- cout << "Podaj imie: "<<endl;
- cin >> nowy.imie;
- cout << "Podaj nazwisko: "<< endl;
- cin >> nowy.nazwisko;
- cout << "Podaj nazwe użytkownika: "<< endl;
- cin >> nowy.nazwa;
- cout << "Podaj haslo: "<<endl;
- cin >> nowy.haslo;
- cout <<"lista uzytkownikow: " << endl;
- cout << jonasz16.imie << " " << jonasz16.nazwisko << " " << jonasz16.nazwa << " " << jonasz16.haslo<<endl;
- cout << andrzej112.imie << " " << andrzej112.nazwisko << " " << andrzej112.nazwa << " " << andrzej112.haslo<<endl;
- cout << nowy.imie << " " << nowy.nazwisko << " " << nowy.nazwa << " " << nowy.haslo<<endl;
- system("PAUSE");
- getche();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement