📅  最后修改于: 2022-03-11 14:44:45.571000             🧑  作者: Mango
//Written by itsKrish01
//If you find any error or mistake in this code, then please contact me.
#include
using namespace std;
int main() {
string login;
string user;
int login_times;
string password_login;
string password;
string command;
cout << "exit/login/register"<> command;
while(command != "exit"){
if(command == "register"){
cout << "\n\n"<> user;
cout <<"password: ";
cin >> password;
cout << "\n\n";
cout << "Registered Successfully!"<> command;
login_times = 3;
while(login_times > 0){
cout << "\n\n";
cout << "Login"<> login;
cout << "Password: ";
cin >> password_login;
if(login == user && password_login == password){
cout << "loged in Successfully!"<