Thread: Simple Menu Problem

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    16

    Simple Menu Problem

    ok, ive searched for a while on the internet, and i dont think this is in the FAQ...i checked (i might have missed it)

    I am making a menu for a game I am making, and right now it has say...

    Go Home............1
    Go To Work........2
    Go To School......3

    and then you cin>> your choice (1, 2, or 3) and press enter

    what I want to do is make it without the numbers next to it, and have the person playing use the arrow keys on the keyboard to navigate up or down the list of options, and when they want to chooose one of the options, they will highlight it by useing the arrow keys (up and down) and press a key (say enter) and then the program will bring them there...

    it is just a pain to be searching for what number you need to press all of the time, and doing it the way i explaned would make the program much easier to navigate through, thanks for any help

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    >>it is just a pain to be searching for what number you need to press

    Learn to type without looking at the keyboard! Hunt-and-peck is no way to write a program or play games.

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    16
    well, i know it is easy to find the number, but whenever you want to go do something, you need to find what it is, then go all the way over to the number that activates it, type it in, and press enter...i know it doesnt seem like much, but after playing for a little bit it sorta gets annoying

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    when touch-typing I can type numbers just as easy as any other key on the whole keyboard. Learn to use all 10 fingers -- assuming you have all 10 of them. Its just as easy to type a number as it is to navigate a mouse.

    As for your mouse request -- I don't know how to do what you want in a command prompt (console program) under MS-Windows. Old MS-DOS 6.X was fairly easy.

    Here is one of probably many tutorials about console programming. I haven't read it through so don't know if it contains the specific info you are looking for.

  5. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    16
    thanks for that site, ill search through it and seee if i find any of it to be useful for me

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating menu, problem
    By Tehy in forum C Programming
    Replies: 2
    Last Post: 04-13-2007, 05:19 AM
  2. simple JPEG problem
    By the bassinvader in forum C Programming
    Replies: 6
    Last Post: 10-05-2006, 05:45 PM
  3. Probably simple problem with classes
    By slaad in forum C++ Programming
    Replies: 6
    Last Post: 12-14-2004, 12:35 AM
  4. Replies: 5
    Last Post: 12-03-2003, 05:47 PM
  5. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM