-
November 22nd, 2012, 10:20 AM
#1
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...
-
November 22nd, 2012, 12:12 PM
#2
Re: Moving cursor with arrows
That's a good page.
- GetStdHandle
- SetConsoleCursorInfo
- PeekConsoleInput
- FlushConsoleInputBuffer
- SetConsoleCursorPosition
- WriteConsole
will probably be sufficent.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|