Because your program does not run independently, but is run by another software (such as IDE). This software implements a feature called "Let the running program not close the window immediately after execution, but wait for press any key.”
No need to close the window when using the linux command line, press any key to continue
I don't know if it can be solved either.
I don’t think it’s realistic to solve this problem. The automatic shutdown you want is to wait until you finish running.
There is a kind of automatic closing called flashing by. You can't see it at all. Is it troublesome to press enter?
Because your program does not run independently, but is run by another software (such as IDE). This software implements a feature called "Let the running program not close the window immediately after execution, but wait for press any key.”
No need to close the window when using the linux command line, press any key to continue
I don't know if it can be solved either.
I don’t think it’s realistic to solve this problem. The automatic shutdown you want is to wait until you finish running.
There is a kind of automatic closing called flashing by. You can't see it at all. Is it troublesome to press enter?
It’s not clear who closes whose application window.