-----------------------------------------------------
This email was delivered to you by the Free Internet,
a Business Online Group company.
Join TFI at http://www.thefreeinternet.net -
the UK's premier 0800, free access ISP.
-----------------------------------------------------
sometimes a program will execute like that if the program does not have to
wait for input from the user.
A good way to remedy the problem is by putting an input command at the end
of your program, but before the return 0; command like this:-
cin >>name_of_variable;
decalare the variable at the beggining of the program like this:-
int name_of_variable;
and include the header at the very beginning of the program:-
#include <iostream.h>
now the program will leave the window open until you press a number and
enter key (because you declared the variable as an integer (int) if you
press a character key you might get an error)
jag
ICQ #103968172
----- Original Message -----
From: "Roosevelt Barros" <ult...@ho...>
To: <dev...@li...>
Sent: Monday, January 15, 2001 4:44 PM
Subject: [Dev-C++] Dev c++ problem
> Hi,
> it seems like I have a problem with my compiler. Everytime I execute a
> program, the program just flashes on and off the screen. How can I fix
this
> problem? thanks.
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|