- Jan 24, 2005
- 232
- 0
- 76
My program compiles, but I am trying to call functions out of my switch statement. Here is just a bit of my code:
switch (choice)
{
case '1':
enterData();
break;
case '2':
displayData();
default:
return;
break;
}
Whenever it executes the specific cases, it says press any key to continue. Why is it ending my program instead of continuing on? Thanks for the help.
switch (choice)
{
case '1':
enterData();
break;
case '2':
displayData();
default:
return;
break;
}
Whenever it executes the specific cases, it says press any key to continue. Why is it ending my program instead of continuing on? Thanks for the help.