I've made a program that has a lot of getch() commands and asking for a lot of char inputs from the user (at least five). Problem is, whenever it would ask for a char input, and i press any letter/key it would automatically move on to another question, which in this case is asking for an int input (This one has no problems and always works). Sometimes it would just skip the char input question, which would render my program useless at this point.
I've tried debugging it, no problems there. What I'm trying to think of is how the program would actually wait and register the char input from the user. It's been bugging me that this is the only untraceable bug I have and haven't resolved over two weeks. Any help please? I can't post the code though. Just a tip or an explanation would be appreciated.
Tags: