1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C++ Menu Steps Ahead

Discussion in 'C++' started by jpacosm, Apr 30, 2011.

Thread Status:
Not open for further replies.
  1. jpacosm

    jpacosm New Member

    Joined:
    Apr 30, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I have already turned in this work a while ago, but trying to fix a part I have in all my programs. For those that include many steps, especially numbers; if you are at a step and type in the numbers for the next menu before pressing enter, it will go through all the steps. What I am referring to is I made a calculator program and I have it to type 3 for one section, then there type 1 for the next, 4 for another, and 5 for another ( it has lot of choices); if you type 3145 at the first step, it will go through all of them. Is there a way that it only does one step at at a time; furthermore, there maybe a simple way dealing with one character if less than 10 choices, but what if I have more than 10? I can send code if needed.
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Thread closed.
     
Thread Status:
Not open for further replies.

Share This Page