Hi, when I enter "oo" I get the "Wrong Password!!! output.. I need to get the "correct Password" output! I would think that this code would work but it doesn't!!! void loginScreen()
{
char x [] = "oo";
char loginA[256];
Yes, it should work, but I forgot an important thing:
You still can use syntax like this: if (loginA == x)
since Cstring and std::string class have overloaded comparision operators. This will lead to more natural syntax:
1 2 3 4 5 6 7
#include <string>
//...
std::string x = "oo";
std::string loginA;
//...
if (loginA == x)
//...