为什么每次都提醒我了string[]长度没有被定义,这哪里错了!我好气
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
string[] names={"关羽","张飞","赵云","马超","黄忠"};
for(int i=0; i< names.length; i++)//请在这里完善代码
{
Console.Write(names[i]);
}
}
}
}