You have two ways to fix this. The preferred way is to use:
string answer;
(instead of char). The other possible way to fix it is:
if (answer == 'y') ...
(note single quotes instead of double, representing a char constant).
You have two ways to fix this. The preferred way is to use:
string answer;
(instead of char). The other possible way to fix it is:
if (answer == 'y') ...
(note single quotes instead of double, representing a char constant).