ok, so I'm new to programming and currently trying to get a running knowledge of some basic C++. This is a practice program.
The order menu is called fine, but I cant get the last function to work. The goal is to have the user input what they want, then based off what their input is the "returnChoice" variable is assigned a message, after that its all returned and outputted in the main functon.
No errors are listed by the compiler or in running it, but after the user inputs what they want it just skips a line and ends. Here's the code.
int main ()
{
string Choice;
Menu();
//ordrChoice(Choice);//This returns a string. You want to use it with cout (or printf)
cout << ordrChoice(Choice) << endl;//ordrChoice(Choice) returns the string and puts it in cout.
cin.ignore();
return 0;
}