The Console Of Dev C++ Doesn't Work

Dev-C++ v 4.9.9.2 IDE
When I compile and run my program as a console project, a window flashes very briefly on the screen and disappears. The compile log says compilation was successful and execution terminated.

Dev C++ For Windows 10

I am able to open Developer Console of my other Developer Edition in the Stack Exchange Network Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Nov 20, 2018 You explicitly don’t need any function to hold the console window. Turbo-C doesn’t provide such functionality for the console, so we need to add a function, like getch, to wait for a character input before returning or ending of the function. And another thing, return 0 is not used for waiting.

The Console Of Dev C++ Doesn't Work Lyrics

How to I keep the window (my output window?) from disappearing?

The Console Of Dev C++ DoesnThe Console Of Dev C++ Doesn
  • 7 Contributors
  • forum 13 Replies
  • 3,654 Views
  • 8 Years Discussion Span
  • commentLatest Postby Mohit_12Latest Post
Console

Ancient Dragon5,243

You have to add a line just before the end of main() to stop the program from closing. Most people call getch() or c++ cin.get(), which is just waiting for keyboard entry.