本文介绍了在命令窗口中重写字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要输出在C#控制台应用程序的某些字符,然后重写它们,从而改变位置字符命令窗口已经被占用。所以比如我可以显示百分比进度10%,20%,30%(但在同一个地方)。我该怎么做?

I want to output some characters in C# console application and then rewrite them, thus changing characters in position already occupied in command window. So for for example I could show progress in percentages 10%, 20%, 30% (but in the same place). How can I do that?

推荐答案

有一个看的使用Console.Write同一位置写入字符串

Have a look at Writing string at the same position using Console.Write in C# 2.0





这篇关于在命令窗口中重写字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 11:24