Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- main()
- {
- string username;
- string password;
- string userpass = "stockholm";
- string username2 = "oskar";
- cout << " Hello and welcome to my site" << endl << endl;
- cout << " Please enter your username and password" << endl << endl;
- cin >> username;
- cout << endl << endl;
- cin >> password;
- if (username == username2 || password = userpass)
- {
- cout << " You have login ";
- }
- else
- {
- cout << " You have entered a invalid password or username, try again"
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement