Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int opcje;
- char login[30];
- char haslo[30];
- char nlogin[30];
- char nhaslo1[30];
- char nhaslo2[30];
- int main()
- {
- cout << "Witaj na naszym portalu!" << endl;
- cout << "Co chcesz zrobić?" << endl;
- cout << "1 - Logowanie" << endl;
- cout << "2 - Rejestracja" << endl;
- cout << "3 - Wyjscie z programu" << endl;
- cin >> opcje;
- if (opcje == 1)
- {
- cout << "Podaj login" << endl;
- cin >> login;
- cout << "Podaj haslo" << endl;
- cin >> haslo;
- }
- if (opcje == 2)
- {
- cout << "Podaj nowy login" << endl;
- cin >> nlogin;
- cout << "Podaj nowe haslo" << endl;
- cin >> nhaslo1;
- cout << "Powtorz nowe haslo" << endl;
- cin >> nhaslo2;
- }
- if
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement