Anything you want read as a string needs to be in double quotes. Without them, y and n are treated as variables. So your above code should be: [code]char response; cout <<"askjdune kksed? y/n\n"; cin>> response; if (response == "y") else if (response == "n") else[/code] See the quotes on lines 4 and 5? That should do it. This post is from -- http://socoder.net/index.php?topic=2425