在线等待,我只想看到hello2,怎么办?. 请看看我的原代码,怎样清除Console.WriteLine写下的信息? . anybody know? help help help 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 using System;namespace ConsoleApplication2{ /// <summary> /// Class1 的摘要说明。 /// </summary> class Class1 { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main(string[] args) { // // TODO: 在此处添加代码以启动应用程序 // Console.Write("hello1"); //Console.clear;---->why wrong, how to modify? //WriteLine()写入的不能清除 Console.Write("\b\b\b\b\b\b\b\b"); Console.WriteLine("hello2"); Console.ReadLine(); } }} why can not clear. but in c++ . we can use the clear!!!!!!!!!!!!!!!!!!!!!!don't have any solution? HELP 你说的Clear方法以C#里就没有。用这个可能清清除WriteLine()写的字符 Console.Out .NewLine = "\t"; Console.WriteLine("hello1"); Console.Write("\b\b\b\b\b\b\b\b");//几个\b就清除几个字符 Console.Out .NewLine ="\n\r"; Console.WriteLine("hello2"); Console.ReadLine(); I'm very sorry,I think it maybe did not have this function.Did you try the different function? so, which function can i use? and tips? vs2008调试时,跳转到下一个断点的快捷键失灵了 加图标问题 新手。。。。。。。。。。 C# this关键字与VB me关键字 这里推荐的商务之星源码数据库生成不了! GridView分页后实现刷新后还能显示定位在此页!~ c#怎样才能在winform里输入,在控制台里显示输入内容? 如何实现监视文件被复制功能? [急.......]如何在RichTextBox中使输入的关键字变色,并根据输入的内容自动使文本变色?? 怎样通过C#实现IE中的活动目录登录? 好多天没来了,经过一个项目的洗礼,内功精进不少,散分。o O 请问有没有sqlhelper的应用实例啊?谢谢
{
/// <summary>
/// Class1 的摘要说明。
/// </summary>
class Class1
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
//
// TODO: 在此处添加代码以启动应用程序
//
Console.Write("hello1");
//Console.clear;---->why wrong, how to modify?
//WriteLine()写入的不能清除
Console.Write("\b\b\b\b\b\b\b\b");
Console.WriteLine("hello2");
Console.ReadLine(); }
}
}
don't have any solution? HELP
用这个可能清清除WriteLine()写的字符
Console.Out .NewLine = "\t";
Console.WriteLine("hello1");
Console.Write("\b\b\b\b\b\b\b\b");//几个\b就清除几个字符
Console.Out .NewLine ="\n\r";
Console.WriteLine("hello2");
Console.ReadLine();
Did you try the different function?