anybody know? help help help

解决方案 »

  1.   

    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(); }
    }
    }
      

  2.   

    why can not clear. but in c++ . we can use the clear!!!!!!!!!!!!!!!!!!!!!!
    don't have any solution? HELP
      

  3.   

    你说的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();
      

  4.   

    I'm very sorry,I think it maybe did not have this function.
    Did you try the different function?
      

  5.   

    so, which function can i use? and tips?