Posted on February 5, 2010 by kturley #include using namespace std; void do_again(),direction(int ans); void option_1(),option_2(),option_3(),option_4(),option_5(),option_6(); int main() { do_again();//call do_again function, say goodbye to main until everything else is done running return 0; }//end function void do_again() { int ans;//declare ans variable, this will be used OVER AND OVER do { cout < < "What would you like to do?n"; cout << "1: Option 1n"; cout << "2: Option 2n"; cout << "3: Option 3n"; cout << "4: Option 4n"; cout << "5: Option 5n"; cout << "6: Option 6 - Exitn";//print us some options cin >> ans; cin.ignore(80,'n'); //take in an answer direction(ans);//send that answer to direction! }while(ans!=6);//keep on keepin on till they pick exit! }//end function void direction(int ans) { switch (ans)//roll thru options { case 1: //if they picked the number 1, its gonna go to this function, //thats pretty much how the whole thing works option_1(); break; case 2: option_2(); break; case 3: option_3(); break; case 4: option_4(); break; case 5: option_5(); break; case 6: option_6(); break; default://THEY DIDNT READ THE MENU, WHO WOULD HAVE THOUGHT?!?! cout < < "Please read and follow all directionsn";//if directions aren't followed break; } }//end function //functions, FILL WITH VALUABLE PROGRAMMING SKILLS void option_1() { }//end function void option_2() { }//end function void option_3() { }//end function void option_4() { }//end function