A key idea here is that the below line is probably not what you want. You probably are trying to evaluate whether the answer is 'c', but that's doing something a bit different. To keep a long story short, that condition is always evaluating as true, which is why the "That is correct!" message always shows.
if (cin >> c)
Instead, you should define a variable to hold the answer, then get the answer using cin. cin will automatically pause and allow the user to enter an answer. Taken from Kemort's example above:
1 2
|
char answer;
cin >> answer;
|
The answer that user enters will be stored in the variable "answer". Then, you want to see if the answer is correct, ie if the answer equals 'c'.
if (answer == 'c')
Notice how Kemort puts single quotes around each possible answers ('c' as opposed to c). That's because these single letters are a character data type, and you want to mark them as such. If you just write c, with no quotes, the program won't recognize it as a character.
Hope this is somewhat helpful.