Hello!

I wrote a program in Visual Studio C ++ 2008. When working in Windows OS, it is no apparent reason that it will stop working after some time.

Tell me, please, what to do?

Closed due to the fact that Regent , Nick Volynkin 14 Feb '17 at 3:50 am off topic .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Regent, Nick Volynkin
If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    Mabie, this is a console application in C ++, and the program is closed, when all the code is executed, but do you need to prevent it from closing without certain actions?

    If so, at the end of the main function add _getch(); and #include "conio.h" above
    Well, if it's C #, then Console.ReadKey(); to help

    • Please refrain from guessing the coffee grounds, and ask the author of the question to provide the necessary details. - Kromster
    • one
      Though fortune-telling, the author of the answer is almost certainly right :) - Alexander Muksimov