日期:2014-05-18  浏览次数:20744 次

关于writeline()的新手问题。
各位高手好,我有个关于writeline()的新手问题请教各位,程序如下:

  char[] txt = {'q','w','e' };
  Console.WriteLine(txt);
  Console.WriteLine("the txt is:{0}", txt);
  Console.ReadLine();

为什么输出的结果是:

qwe
the txt is:System.Char[]

第二行的输出要怎样写才能正常输入?谢谢各位。

------解决方案--------------------
C# code
Console.WriteLine("the txt is:{0}", new string(txt));