Hey a quick questoin, thx in advance

Started by
4 comments, last by Colossuss 21 years, 6 months ago
I did the tutorial hello world exactly but my screen just minimize and them maximises real fast and doesn''t do anything else, i''m positive i did everything the tutorial said, thanks? do i have to add something to make the program stay or what? thx
tim
Advertisement
btw i''m using dev c++
tim
what tutorial? it propably opens your window and prints the
hello world there, but it exits right after it. add pause there.
Include the conio.h header and add getch() where you want it to pause.
I''m guessing that it''s a console mode Hello World program; and you''re double-clicking on the exe.

Try instead opening a command prompt/dos box, changing to the directory where the exe is and typing it''s name. Then, when the exe runs, the command prompt won''t instantly close.

HTH...



www.coldcity.com
code, pics, life
[size="2"]www.coldcity.com code, art, life
Also, in Dev-C++, click the set of folders on the far right side of the top toolbar. That will open a box called project options. Look on the "Project type:" checklist in the upper right-hand corner and make sure "Do not create a console" is not checked.

This topic is closed to new replies.

Advertisement