Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int opcje;
  6. char login[30];
  7. char haslo[30];
  8. char nlogin[30];
  9. char nhaslo1[30];
  10. char nhaslo2[30];
  11.  
  12. int main()
  13.  
  14. {
  15.     cout << "Witaj na naszym portalu!" << endl;
  16.     cout << "Co chcesz zrobić?" << endl;
  17.     cout << "1 - Logowanie" << endl;
  18.     cout << "2 - Rejestracja" << endl;
  19.     cout << "3 - Wyjscie z programu" << endl;
  20.     cin >> opcje;
  21.     if (opcje == 1)
  22.     {
  23.         cout << "Podaj login" << endl;
  24.         cin >> login;
  25.         cout << "Podaj haslo" << endl;
  26.         cin >> haslo;
  27.        
  28.     }
  29.     if (opcje == 2)
  30.     {
  31.         cout << "Podaj nowy login" << endl;
  32.         cin >> nlogin;
  33.         cout << "Podaj nowe haslo" << endl;
  34.         cin >> nhaslo1;
  35.         cout << "Powtorz nowe haslo" << endl;
  36.         cin >> nhaslo2;
  37.     }
  38.     if
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement