x.Hmave a question with a C++ program I am working on. I will provide the instru
ID: 3616858 • Letter: X
Question
x.Hmave a question with a C++ program I am working on. I will provide the instructions and code I have but would lke to just give you an overview of my issue. When I compile my code it runs fine. If I hit anything other than 1-5 it asks me to reenter it which is what I want it to do. When I hit 5 it works as I want it to as well. My problem has occurred when I create a function for the switch. when I hit 1-4 it just loops back in the main screen. When I don't use the function it works fine but I would like to keep int main with the least information as possible. Here is the instructions and code but please let me know if thi is confusing...Explanation / Answer
please rate - thanks it was your call to the function //Class: C++ 230 //Date: 2/16/10 #include using namespace std; //Function prototypes void showMenu(); int mainMenuSelection(int); int main () { //Declare variables int choice; //Set the numeric output formatting //coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.