Advertisement
Guest User

Untitled

a guest
Feb 6th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5. int main()
  6.  
  7. {
  8.  
  9.  
  10. string password;
  11. password = "123";
  12.  
  13.  
  14. string username;
  15. string test ;
  16.  
  17. username = test;
  18.  
  19.  
  20. cout << "Enter username:";
  21. cin >> test;
  22.  
  23. cout <<"\n";
  24.  
  25. cout << "Enter password:";
  26. cin >> password;
  27.  
  28. cout <<"\n";
  29.  
  30.  
  31.  
  32. if (password == "123")
  33. cout << "Access Granted...";
  34.  
  35.  
  36. if (password != "123")
  37. cout << "Access Denied.....Invalid Username/Password:";
  38.  
  39. return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement