[Solved] Yes/No always pick the first option (C++) [duplicate]


Something like this?

char foo;

while(true)
{
    cout<<"again? ";
    cin<<foo;
    if(foo == 'N' || foo =='n')
        break;
    else
    {
        //Do important stuff 
    }
}

1

solved Yes/No always pick the first option (C++) [duplicate]