在C ++代码完成执行后保持控制台打开 [英] Keep the console opened after the C++ code finished executing
本文介绍了在C ++代码完成执行后保持控制台打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在代码执行完毕后保持控制台处于打开状态(我使用"cin.get但它不起作用?"
解决方案
许多地方有很多答案。我知道StackOverflow中有答案,因为我发布了一个答案,但它适用于C#。
我经常做的就是在"主"的末尾添加一个断点。功能
How can I keep the console open when the code finished executing (I use "cin.get but it doesn't work)?
解决方案
There are many answers in many places. I know there are answers in StackOverflow because I posted one but it is for C#.
Something I often do is to just put a breakpoint at the end of the "main" function.
这篇关于在C ++代码完成执行后保持控制台打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文