一运行终端就自己把自己关闭了。
用run code 编译加运行的时候也是这样子的,编译完几秒钟后自己就关闭了。
参考两个回答
https://blog.csdn.net/weixin_39889788/article/details/111740629
https://blog.csdn.net/weixin_45698273/article/details/105195452?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1.no_search_link
system("pause");