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?

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

[IMG]file:///C:/DOCUME%7E1/BHARGA%7E1/LOCALS%7E1/Temp/moz-screenshot-2.jpg[/IMG]

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

You are welcome. :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.