我怎樣才能真正使我的 Microsoft Visual Studio 代碼控制臺干凈,以便在我運行代碼時不顯示路徑。我只想看到我的輸出,僅此而已。如果您有任何想法,請給我建議。點擊這里查看圖片
uj5u.com熱心網友回復:
- 除錯停止時自動關閉控制臺視窗。
為此,首先轉到tools-> options-> debugging->Automatically close the Console Window when Debugging stops
然后點擊debug-> start without debugging->
- 或使用系統暫停命令
在程式末尾鍵入:-
system('pause')
警告:這僅適用于 Windows。
然后點擊debug->start debugging
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/417835.html
標籤:
