I am using Dev c++ IDE for c and c++. When i run an aplication the running window disappears quickly.
What should i do?

just before return, place a getchar();

This is what I use, it pauses right before exiting, it's pretty much the same as getchar(), only difference that pressing any key works to exit, where if you use getchar() you have to hit return (enter) to exit

system("PAUSE");
return EXIT_SUCCESS;

Cheers,

Waldis

Dont use system("pause"); because you can easily replace it with cin.get(); which is, to the controary of system("pause"); , compatible with more OS's then just Windows. If you can should you always make your program cross-OS if you can.

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.