Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with C++ in dos

Status
Not open for further replies.

SykoStokkrTim

Programmer
Jul 19, 2002
20
US
Is there a command or function that I could use to cout text to a certain x,y coordinate on the screen? I know in QBasic this is the LOCATE command. Any help would be nice.
 
There's something in conio.h, but people seem to shy away from that for some reason.
 
If you have written a Windows application, then you can create the console window with AllocConsole() and can use SetConsoleCursorPosition() along with WriteConsole() etc. to place cursors, read, write, etc. just like you're used to in QBasic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top