cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Writing at specific coor in console
Writing at specific coor in console
Sep 20, 2011 at 5:03pm UTC
DustTrust
(2)
I'm trying to write at a specific xy coordicate in the console.
I'm using Microsoft Visual Studio and conio.h won't work when I try putchxy.
So, how can I write at specific coordinates with C++ using MVS?
Thank you
Sep 20, 2011 at 5:20pm UTC
whitenite1
(1785)
Check out the title 'Can't get 'GetKeyState' to work.. ' in this forum. There is a program shown that uses a gotoXY() function, that should be exactly what you need. Just make sure you also use the lines with
HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE);
COORD CursorPosition;
.
whitenite1
Sep 20, 2011 at 5:41pm UTC
DustTrust
(2)
Thank you vm
Last edited on
Sep 20, 2011 at 5:49pm UTC
Sep 20, 2011 at 7:45pm UTC
Duthomhas
(13282)
Also posted recently:
http://www.cplusplus.com/forum/general/50583/#msg274894
Topic archived. No new replies allowed.