当前位置:网站首页>C#控制台应用程序运行时一闪而过解决方法
C#控制台应用程序运行时一闪而过解决方法
2022-04-23 00:10:00 【黄昏和星空】
方法一、运行程序的时不用F5键执行,用Ctrl+F5执行,它的意思是“启动执行(不调试)”。
方法二、在你的代码的最后加上这句 Console.ReadLine(); 也就是“等待用户输入”,这样DOS窗口直到你敲击回车键才会关闭或者在程序最后加上一句Console.ReadKey();这样DOS窗口接收一个字符才会退出。
方法三、在CMD下运行程序。
版权声明
本文为[黄昏和星空]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_41883890/article/details/123558729
边栏推荐
- L1-078 teacher Ji's return (15 points)
- MTP management training plan - study notes on day 2
- Nodejs+express登录鉴权并注册部分
- Automatic watering system based on 51 single chip microcomputer
- 【ACM】47. 全排列 II(考虑某一树枝下,已经记录的元素在下一层递归时是否会被重复记录(使用数组used来记录))
- L1-069 tire pressure monitoring (15 points)
- Teach you two minutes to make a beautiful and easy-to-use 404 page
- Detailed explanation of seven common query connections in MySQL
- 【ACM】51. Queen n
- (转)C#最佳工具集合:IDE、分析、自动化工具等
猜你喜欢
随机推荐
Notes on "Introduction to dynamic programming" (under update)
基于.NetCore开发博客项目 StarBlog - (3) 模型设计
Programming 2022-02 KTV
WMS warehouse management system solution
WMS仓储管理系统解决方案
两种方法实现mongodb自增id,推荐第二种
学习 Rust
条码WMS系统的架构
Algorithm -- adding two numbers II (kotlin)
(转)Word2016怎么和mathtype兼容
API interface knowledge summary
人为什么看不到事实?
(转)Aspose.words编程指南之DOM树再识,各层结构之间的关系
L1-071 previous life files (20 points)
【ACM】90. 子集 II(同一树层的去重问题首先要对数组进行排序(使用sort))
Niuke bm41 Right view of output binary tree
对指定目录下的图片,取图片名(不包含图片的扩展名)、将文件路径和图片名分开、将文件名和图片扩展名分开
L1-068 harmonic average (10 points)
Skills of saving images with different depths in opencv
How to use icy for behavioral tracking in mice?








