Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string name;
- string password;
- cout << "username: "; cin >> name;
- cout << "password: "; cin >> password;
- if (name == "Harvey" || name == "harvey")
- {
- if (password == "pass")
- {
- cout << "Welcome back Harvey" << endl;
- }
- else {
- cout << "password Incorrect. Access Denied" << endl;
- }
- }
- else {
- cout << "Username Incorrect. Access Denied" << endl;
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement