namespace Test
{
class Program
{
static void Main(string[] args)
{
string[] names={"关羽","张飞","赵云","马超","黄忠"};
for(int i=0;i<names.Length;i++;)
{
Console.Write(names[i]+",");
}
//请在这里完善代码
}
}
}
需要用 new 分配内存
string[] names = new string[5]{"关羽","张飞","赵云","马超","黄忠"};
i++;) i++后面不需要分号