Moving cursor with arrows
Hi there,
I have to write tic-tac-toe game in Visual 2010. My only problem is that I don't know how I can move the cursor with arrows in the console in order to fill in chosen positions in 3x3 table:
I guess that the needed functions are in here:
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
but I don't know from what to start with...
Re: Moving cursor with arrows
That's a good page.
- GetStdHandle
- SetConsoleCursorInfo
- PeekConsoleInput
- FlushConsoleInputBuffer
- SetConsoleCursorPosition
- WriteConsole
will probably be sufficent.