Hi,
Are you using the latest Dev-C++ version? I'm using version 4.9.6.9 and
clrscr() works.
After you have created a Win32 console template application through File,
New, Project, you need to do the following:
1. In your source file, you'll need to have this line.
#include <conio.h>
2. In Project Options, Linker Options/Optional Libs or Object files, you
need to add this:
-lconio
To see which console functions are supported, take a look at conio.c and
conio.h in the Dev-C++ include directory.
Regards,
Yeoh
~`~`~`~`~`~`~`~`~`~`~`
http://www.yeohhs.com
~`~`~`~`~`~`~`~`~`~`~`
----- Original Message -----
From: "ajli@home" <aj...@So...>
To: <dev...@li...>
Sent: Thursday, November 28, 2002 12:43 PM
Subject: [Dev-C++] Need Help - Clear Screen
> Uhh yeah...first mail; I'm not sure if this is the right place to send
> stuff. I'm fairly new to pcs and C++. Anyhow, I'm trying to make a
> little *game* for dos and I am forced to use these two a lot;
> system("cls"); is incredibly slow; it takes like 3 seconds to clear the
> screen. I've heard of alternative methods, but I've never managed to
> get one to work -- I've tried things like adding conio.h and clscr();
> but it won't compile under dev c++ and since I have very little
> experience with pcs, I have no idea how to configure it even with
> instructions. If someone has an alternative method (with no
> configuration) or can provide me with step by step instructions, it
> would be very helpful (I'm using win98).
>
|