Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- int main()
- {
- char username = "user";
- char password = "admin";
- cout << "Username:"; << endl;
- cin >> username;
- cout << "Password:" << endl;
- cin >> password;
- if(username == username&& password == password)
- {
- cout << "Login Successfully" << endl;
- }
- else
- {
- cout << "Your Username/Password didn't match!" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement