Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

Spyderzone

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

Posts I've Made

In Topic: Need help with an excercise from Beginning C++ 2nd edition

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