Hi Im just trying it out but Im trying to create a console application that just does a basic thing like create a username and password, so atm I have this...
char sUsernameCorrect[] = "Limbo";
Atm It will only accept Limbo with that working and grammar, so with a capital L and unless it has that it will not work so what I was hoping someone could answer is if they are a way for it to work like this...
You could create an array of const char* like this constchar* sUsernameCorrect[] = {"Limbo", "limbo", "LIMBO"};
A more robust solution is probably to convert all the characters to lower (or upper) case before comparing the characters. That way you can easily handle ALL combinations of upper/lower case. http://en.cppreference.com/w/cpp/string/byte/tolower
Cause I tried the one you did and tried compileing it and I got a bunch of errors.
And another big problem is, is when they go to enter the username and say instead of LIMBO and they wanted Lingo it would log them in as LIMBO due to the capital L char