Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string username;
- string password;
- bool success;
- cout <<"\tKek\n";
- do
- {
- cout << "\nUsername: ";
- cin >> username;
- cout << "Password: ";
- cin >> password;
- if (username == "Mr.Serhio" && password == "1234")
- {
- cout << "\nDarou, Serhio.";
- success = true;
- }
- else if (username == "Ms.Eva" && password == "1234")
- {
- cout << "\nDarou, Ms.Eva";
- success = true;
- }
- else
- {
- cout << "\nYour login failed.";
- success = false;
- }
- } while (!success);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement