gotoxy(int x, int y) and clrsrcn(int backolor, forecolor) for Visual Studio C++ 6.0?
I am making a simple console program. (Is console what I call those run in "DOS" type program?)
May I know for Visual Studio C++ 6.0, what is the equivalent functions for:
gotoxy(int x, int y) //Position cursor to coordinates x, y
clrscrn(int backcolor, int forecolor) //Set the screen to colors stated
Thanks in advance.
There's no equivalent functions to these, but you can use Win32Api to do it. Read console tutorials from http://www.adrianxw.dk/SoftwareSite/index.html and know.
From the FAQ, here's gotoxy() in a Windows Console .
Here's clearing the screen . It's the last option listed.
You can probably modify the call to FillConsoleOutputAttribute() to set colors.