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,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
  3. shabbir

    shabbir Administrator Staff Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice