- #1
Rocket254
- 33
- 0
I am trying to solve a little problem that I have. I need to create a simple win32 console app that displays a multiple option menu on a x second loop. That part is easy. Where I am getting stuck is this: While the app is looping outputting the menu, it also needs to be able to check for a character input to indicate which menu option is pressed, exit the loop, and take the appropriate action according to the menu option selected.
If managed to accomplish this (somewhat) by using kbhit()
http://pastebin.com/m63cf5957
The only problem left, is the fact that the must be developed using only ANSI Standard C++ code with no precompiled headers.
Any ideas? I'm stumped without using non-ANSI code. It has been a while since I've had to do a simple command line app and back then I only had simple menus that would run once, allow the user to select an option and take action. After the action, the menu would be shown again.
Thanks in advance for any and all help.
-G
If managed to accomplish this (somewhat) by using kbhit()
http://pastebin.com/m63cf5957
The only problem left, is the fact that the must be developed using only ANSI Standard C++ code with no precompiled headers.
Any ideas? I'm stumped without using non-ANSI code. It has been a while since I've had to do a simple command line app and back then I only had simple menus that would run once, allow the user to select an option and take action. After the action, the menu would be shown again.
Thanks in advance for any and all help.
-G
Last edited by a moderator: