class Program
{
static void Main(string[] args)
{
String a = "2008-08-08";
String b = a.Split("-");
Console.WriteLine("{0}年{1}月{2}日", b[0], b[1], b[2]);
Console.ReadKey();
}
}错误 1 与“string.Split(params char[])”最匹配的重载方法具有一些无效参数 C:\Users\LXL\Documents\Visual Studio 2005\Projects\ConsoleApplication4\ConsoleApplication4\Program.cs 12 24 ConsoleApplication4
a.Split("-");
=》
a.Split('-');
String b = a.Split(new char[]{'-'});