-
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 :D
-
>>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.
-
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 :(
-
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. :D
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.
-
thanks for that site, ill search through it and seee if i find any of it to be useful for me ;)