#Help

4 messages · Page 1 of 1 (latest)

tribal cloud
#

does that help

rugged lynx
#

void admin()
{
int count=1;
char user[20], pass[4];
char aduser[20][10]={"Jerald"};
char adpass[20]={"1111"};
const char* str = &c;
cout<<"\tEnter Username : ";
cin>>user;
for(int x=0; x<count; x++){
if(strcmp(user,aduser[x])==0){
cout<<"\tEnter Password: ";
cin>>pass;
if(strcmp(pass,adpass[x])==0){
cout<<"welcome"<<aduser[x];
}
}
}
}

#

Likethis