carraige回归的问题...... [英] problem with carraige return...

查看:84
本文介绍了carraige回归的问题......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在在我的出局结束时我正在回车&\\ r我可以在同一条线上获得输出,但我面临一个问题...


这样......

now at the end of my out put i am putting a carriage return "\r" s that i can gain output on the same line but i am facing a problem...

such that...

展开 | 选择 | Wrap | 行号

推荐答案


现在在我的出局结束时我正在回车&\\r ;我可以在同一条线上获得输出,但我面临一个问题...


这样......
now at the end of my out put i am putting a carriage return "\r" s that i can gain output on the same line but i am facing a problem...

such that...
展开 | 选择 | Wrap | 行号



是的,没有告诉你的控制台清除该行的其余部分所以之前的输出

仍然存在可见。你可以用快速而又脏的方式做到:
Yep, nothing told your console to clear the rest of that line so previous output
remains visible. You could do it the quick and dirty way:
展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


您可以使用system(cls)清除整个输出屏幕,但不只是前一行。这对你有用吗?
You can use system("cls") to clear the entire screen of output, but not just the previous line. Will this work for you?


这篇关于carraige回归的问题......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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