Problems with cin and GetAsyncKeyState
Well, I'm a beginner in C++ and I tend to make MANY errors when trying out codes I'm not taught before. So recently I got to know about GetAsyncKeyState and i used it in my main function which is basically a menu. I did all the stuff I will need to do for GetAsyncKeyState in a bool keyDown(int vKey) function which returns either 1 or 0 depending on whether the key is pressed.
Now my menu is supposed to link to another file which takes care of the user entering his/her profile. For this page I used cin, but I noticed a bug. This bug is that if I type something on the menu then press Enter to go into the profile page, which would go to the void profile() function, whatever I typed while on the menu page would automatically cin into my first cin, which is very weird. Of course, it would be better if someone could add me on MSN and help me but [if you need to see a part of my code to find out whats causing this problem feel free to post it here.]