[Dev-C++] Re: clrscr() & gotoxy() - Question of a beginner
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Shachar G. <av...@be...> - 2003-11-04 19:56:47
|
Most - MOST - unfortunately, these very useful functions are exclusive to=
borland.
You can use a function defined in stdlib.h - "system(char *)" - to perfor=
m a similar function to clrscr().
Simply call it as such: system("cls");
Note: You are actually executing 'cls' with this. It's a command to launc=
h other files.
Oh, one more thing - only good can happen from _flushall() before every c=
all to the system() function!
- Shachar Gershoni
|