|
From: Jonathan W. <jon...@gm...> - 2007-07-13 09:55:23
|
Hi,
The basic, simple program won't have a graphical user interface, only
input/output via the console/terminal/DOS box.
There are two global solutions:
a. make your program wait for a keypress before exiting
b. open a console, go to the folder, and run the program from there.
a. is is easier for you to use while developping, since you can start the
prog from DevC++ and see the result.
A correct way of doing this is to call getchar();
this will try to read a char from the input, and will wait until it gets
one. much better.
An EVIL way is to call system("pause"); You can read why here:
http://www.gidnetwork.com/b-61.html
Jonathan
On 7/13/07, arpit jain <arp...@gm...> wrote:
>
> im new 2 programing & i have been trying to learn C, & for that i started
> using bloodshed dev c++5.0 but what im not getting is when i run the program
> the software doesnt show the result but makes an application file (DOS
> based) for e.g. that HELLO WORLD program's output just gets flashed in the
> command prompt which im myself unable to see properly as it flashes hardly
> even for a second. could u pls. help me on this.........????
>
>
|