Guest User

Untitled

a guest
Oct 22nd, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. string username = "snabban93";
  2. string password = "masterfister89";
  3.  
  4. string input1, input2;
  5. int counter = 0;
  6.  
  7. while(counter > 4){
  8.     cout << "Enter password and username " << endl;
  9.     cout << "Username:";
  10.     cin >> input1;
  11.     cout << "Password:";
  12.     cin >> input2;
  13.    
  14.     if(username == input1 && input2 == password){
  15.         cout << "Welcome!";
  16.         break;
  17.     }
  18.     else{
  19.         cout << "login is invalid"<< endl;
  20.     }
  21.     ++counter
  22. }
  23. cout << "Fuck off " endl;
Add Comment
Please, Sign In to add comment