   variables and parables
  // Yes or no// Demonstrates return values and parameters#include <iostream>#include <string>using namespace std;char askYesNO1();char askYesNo2(string question);int main(){    char answer1 = askYesNo1();    cout << "Thanks for answering: " << answer1 << "\n\n";   char answer2 = askYesNo2("Do you wish to save your game?");    cout << "Thanks for answering: " << answer2 << "\n";   return 0;    }char askYesNo1(){    char response1;    do    {   cout << "Please enter 'y' or 'n': ";   cin >> response1;    } while (response1 != 'y' && response1 != 'n');    }char askYesNo2(string question){    char response2;    do    {   cout << question << " (y/n): ";   cin >> response2;    } while (response2 != 'y' && response2 != 'n');   return response2;    errorsline 14 'line 14 (Eachline 24 '   
  ?   ;  Ok, not sure what you're asking here, but I did notice that the function askYesNo1() doesn't return the response1 value, and that the function askYesNo2() doesn't appear to have a closing bracket.   ;  Also, the prototype for askYesNo1() is wrong. It has a capital "O" when it should have a lower-case "o".   ;  In the future, please:- Put short code snippets inside [code][/code] tags, and longer ones inside [source][/source] tags.- Ask an actual question.- Try *reading* the *full* error message.- Failing to understand what the *full* error message is trying to tell you, copy and paste it - again, in full. Obviously there is more text to each of the messages than just a line number and "(Each" or "'". Consider the possibility that  something is misconfigured in your API and preventing you from seeing the full message (sorry, can't help with that).I recognize your user name, which suggests to me you've been around a little while and should know better.   ;  Why don't I use code tags?  Because there's not a button for them that pop's up that I can see.  The fix worked thank you.   ;Quote:Original post by AgreenknightWhy don't I use code tags?  Because there's not a button for them that pop's up that I can see.  The fix worked thank you.For future reference...How do I put links/quotes/images/code/smileys in my posts? 