C/C++如何直接关闭应用程序窗口?
PHP中文网
PHP中文网 2017-04-17 11:38:06
0
3
1402

Windows下return 0;exit();都不能达到直接关闭应用程序窗口的效果,怎样才能跳过press any key to continue呢?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
阿神

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?

Ty80

It’s not clear who closes whose application window.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template