Computing.Net > Forums > Programming > Problem with devc++

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Problem with devc++

Reply to Message Icon

Name: JoseBillBR
Date: September 18, 2005 at 15:34:02 Pacific
OS: win xp pro
CPU/Ram: 512
Comment:

Hi

I'm a complete newbie, so sorry if this is trivial.

I've installed devc++ to figure out a bit about programming. I can't even get the basic hello world program to work.

I type it all into a .cpp file, but when I compile and run, the command prompt terminal flashes up and then closes immediately - I don't even see what it is doing, never mind whether or not it's said "Hello World".......I've looked around but can't see anyone else with this problem. Am I missing something basic?



Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: September 18, 2005 at 15:52:45 Pacific
Reply:

You need a delay like an input statement. The progran starts, executes. Since it is finished the OS closes the window.


0

Response Number 2
Name: JoseBillBR
Date: September 18, 2005 at 15:59:57 Pacific
Reply:

Is there a way to stop the OS closing the window so I can see what it's doing?

Or is there another way?


0

Response Number 3
Name: Cache
Date: September 19, 2005 at 10:43:12 Pacific
Reply:

You can use:

system("PAUSE");


0

Response Number 4
Name: Dark_Kartug
Date: September 20, 2005 at 17:20:38 Pacific
Reply:

You could also just insert a breakpoint at your return 0; statement. That way the program will stop when its done and wait untill you close it.

but system("Pause") might be easier if you dont know much about the debugger yet (for breakpoints)


War sucks but the sound is good and WE are the DJ's


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


graphics delay (svgalib, ... Can a cmd line program be...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Problem with devc++

Problem with Java Mail www.computing.net/answers/programming/problem-with-java-mail/12388.html

problem with date() function in PHP www.computing.net/answers/programming/problem-with-date-function-in-php/8855.html

Problem with VB coding www.computing.net/answers/programming/problem-with-vb-coding/6092.html