this is the offending bit.....

localQuestion == "yes"

You cannot do that in c/c++. firstly localQuestion is only a char. that means it can hold one character. Secondly even if it was a char* c-style string you would need to use strcmp() to compare it with the string "yes".

Instead. #include<string> and make localQuestion a string not a char then suddenly that bit of code becomes legal.