I've made this code for a simple test quiz program, it's inside an if statement:


Code:
            cout<<"What is Bush's firstname?\n\n";
            cout<<"Answer: ";

            cin.getline(string, 1000, '\n');
    
            if (!strcmp("george", string) || !strcmp("George", string) || !strcmp("GEORGE", string))
            {
                cout<<"Correct!\n\n";
            }
            else
            {
                cout<<"WRONG!\n\n";
            }
but when i get to the point where you are to input, then it skips it and goes right to the "else" part (because "nothing" is a wrong answer)

I can't figure out what is wrong... plz help