Well, I happened to download Dev C++ on my laptop today ... I jus wrote a simple "Hello World" program .... but when I compile & run ... compilation is successful but the result window flashes & disappears ...

Can anybody plz help me with this??????????

Also, how can I try to run the program from the cmd prompt ? I have a Windows XP OS.

Another suggestion required .... I just need a C++ compiler and need to practice some programs ...which is the best IDE and compiler? I need a free download? Is Dev C++ good enough?

9 Years
Discussion Span
Last Post by ~s.o.s~

Place the statement getchar() at the end of your program just before return 0 (if you have one) and then compile and run.

As for free IDE's look here.


well, I tried getchar() but i get a blank window as in the attachment.

what am I doing wrong? plz help



thanks S.O.S ! ...that was a false alarm...It didn't work at first but I simply closed the Dev C++ widows and reopened & tried again ...& it worked !!! :-)

thanks alot

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.