What do I have to do to be able to use "gotoxy(x,y);" and "clrsrc;"?
What do I have to do to be able to use "gotoxy(x,y);" and "clrsrc;"?
read the board FAQ...
gotoxy()
http://www.cprogramming.com/boardfaq.html#various
clrscr()
http://www.cprogramming.com/boardfaq.html#clear
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
Hmmmm that still didn't seem to work. mY compiler is microsoft visual c++, and it is said that it only does windows, and not dos. could that be the problem?
gotoXY() is a function console function in boorland's conio.h
instead you must include <wincon.h> and <winbase.h>
or I think that if you simply include <windows.h> that will do the trick...
and use some of the console functions
Code:COORD dwCordinates; dwCordinates.X = 20; dwCordinates.Y = 20; HANDLE consoleHandle = GetStdHandle( STD_OUTPUT_HANDLE ); /* STD_INPUT_HANDLE STD_OUTPUT_HANDLE Standard output handle STD_ERROR_HANDLE */ SetConsoleCursorPosition( consoleHandle, dwCordinates);
...oh by the way ... to clear the screen
#include<process.h>
....
system("cls");
....
there a bunch of console functions if you want to perform a search for them in your help files...using the keywords
Console Functions
zMan
Wrong! system is in stdlib on every compiler I've ever used...#include<process.h>
....
system("cls");
....
What does the FAQ version do wrong?
-Govtcheez
[email protected]
it's in both files.... see line 145 of process.h
zMan
Thanks you guys are great you helped a lot!!!