Professional Documents
Culture Documents
#include <string>
int main()
char a[50];
char c[50];
char d[50];
char b;
int chat;
do
if (username.length() <= 3)
else
{
cout << "Enter password:";
if (password.length() < 6)
cout << "Password length must be atleast 6 characters long." << endl;
else
user_validated = true;
do
cin>>chat;
if(chat==1)
cout<<"Diana is Offline!\n";
cin>>b;
}
else if(chat==2)
cout<<"Rita is Offline!\n";
cin>>b;
else if(chat==3)
cout<<"Anne is Online!\n";
cout<<"Rich:";
cin>>a;
cin>>b;
else if(chat==4)
cout<<"Gwen is Online!\n";
cout<<"Rich:";
cin>>a;
cout<<"Gwen: Yep\n";
cout<<"Rich:";
cin>>c;
cout<<"I'm Sleepy\n";
cin>>b;
}
}
while(b=='Y');
else