Hi,
Im new to c++ and today, when i tryed to make "login program" i ran inti problem. Is it possable to use character variables at if/else statements at all? I mean
I keep getting error, that there is something wrong with the first if statement. I am using dev c++ compliler, i hope someone here is willing to help newbe like me. It also didnt accept if i compared character variable username to string, what takes information from text file. It worked all fine, when password and username were boath ONLY numbers.Code:if(username==user)
{
cout <<"Username verifyed, insert the password";
cin>>password;
}
else
{
cout<<"Wrong username, try again!";
cin>>username;
}
Regards,
Kitu.