I'm building a program for school, and it's supposed to have a menu. You must be able to navigate the menu using the arrow keys. I decided to use GetAsyncKeyState() to accomplish this. The menu works fine. However, when I try to use cin later on, it displays everything previously entered by the user. Is there a way to clear everything in cin?
I'm using cin because that's what my instructor said to do, and we're not allowed to submit things written in other languages so that Pascal thing won't help :P