Re: [Dev-C++] easy start program for beginners that works.....
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Elektro <el...@wo...> - 2001-08-15 19:33:32
|
Is there a function similar to the clrscr() in Turbo C++ ?
In Linux GCC compiler uses the NCURSES library, and in Windows console apps=
?
*********** REPLY SEPARATOR ***********
On 13/08/01 at 13:23 Nexus wrote:
>here is a very easy starter app
>that will run from windows or the command line...
>
>run it from both to see the differce.
>
>
>Nexus
>
>#include <stdio.h>
>#include <iostream.h>
>#include <stdlib.h> //needed for system("cls"); to work
>int main(int argc, char *argv[])
>{
>int fleas;
>
>system("cls"); //clears the screen of junk you typed before
>
> cout << "\t\tHow many fleas does your Dog have? ";
> cin >> fleas;
> cout << "\t\tWell thats " << fleas << " to many\n";
> cin.get(); //keeps window open when run rom inside windows
> cin.get();
> return 0;
>}
|