什么是打击控制台关闭问题的最佳实践? [英] What is the Best Practice for Combating the Console Closing Issue?

查看:72
本文介绍了什么是打击控制台关闭问题的最佳实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编译控制台程序后,控制台窗口会在运行后立即关闭。保持开放的最佳做法是什么?我搜索google加载,我习惯于代码块,你不必担心它,但是,我想搞砸Visual Studio一点点和VS,我的控制台关闭。所有的interwebz有几种不同的方式来保持它的开放,但是,我已经读到,他们大多数是坏的编码技术。什么是每个人都喜欢的方法?

After compiling console programs the console window closes immediately after running. What is the best practice for keeping it open? I've searched google loads, I'm used to codeblocks where you don't have to worry about it, but, I want to mess around with Visual Studio a bit and with VS, my console closes. All over the interwebz there are several different ways to keep it open, however, I've read that most of them are bad coding techniques. What is everyones preferred method?

推荐答案

当我使用Visual Studio和我不需要调试我只是运行它 Ctrl + F5 keystroke–并防止控制台关闭。

When I'm using Visual Studio and I don't need debugging I just run it using Ctrl+F5 keystroke – and it prevents console from closing.

这篇关于什么是打击控制台关闭问题的最佳实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆