Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Spyderzone

Member Since 31 Mar 2011
Offline Last Active Feb 15 2012 05:00 PM
-----

#4913225 Need help with an excercise from Beginning C++ 2nd edition

Posted by Spyderzone on 14 February 2012 - 09:44 PM

First off let me say I have pretty basic knowledge of C++ and I'm pretty much a beginner in general, but my guess is if you want to do this what you need to do is have a way to escape the loop.

For example if your menu is

1 - Add Game
2 - Remove Game

You need to have something like:

9 - Quit

Then you can have your do loop do something like

do {
stuff;
}
while ( userAnswer != 9);


PARTNERS