|
From: Daniel K. O. <dan...@ya...> - 2004-11-11 05:05:50
|
MD T wrote:
> I tried to develop programs in newly downloaded and
> installed dev c++ in my computer with windows Xp o/s.
> After typing the program and pressing F9 i don't see the screen which
> should show mw the result of the program. The log says g++ exe.and
> then some file names, execution terminated and compiled successfully.
> Can someone tell me what is the mistake here?
>
Go to your project options and select the type "Win32 Console".
But be aware that once a program ends, it ends; it won't stop waiting
until you read the output unless you tell it to; three ways to do it are:
cin.ignore(); // C++ only
or
system("pause");
or
getchar();
Use one of them whenever appropriate, and the program will stop at that
point waiting for user input.
Daniel K. O.
|