|
From: christiaan s. <ck...@ia...> - 2001-12-01 13:22:46
|
whats wrong with pause?
----- Original Message -----
From: "Charles" <cha...@at...>
To: "Dev-C++" <dev...@li...>
Sent: Friday, November 30, 2001 1:27 AM
Subject: Re: [Dev-C++] Run Problem
> Jeff -
>
> > > I have installed Dev-C++, and have written a test program, the program
> compiles, but when running it, it only flashes quickly on the screen.
>
> Note that Jason's solution,
> > If you add #include <cstdlib> at the top and the line: system("PAUSE")
> is system-specific and therefore not portable.
>
> It is better to do this:
>
> #include <cstdio>
>
> printf("Press ENTER to continue");
> fflush(stdout);
> getchar();
>
>
> Chuck
>
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|