请问大家我这个问题出在什么地方,感谢指点~
static void Main(string[] args)
{
string [] name ={ "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" };
int [] Score = { 89, 90, 98, 56, 60, 91, 93, 85 };
int MaxScore = Score[0];
int index = 0;
for (int i = 0; i < Score.Length; i++)
{
if (MaxScore < Score[i])
{
MaxScore = Score[i];
index = i;
}
}
Console.WriteLine("分数最高的是"+name[index]+", "+"分数是"+MaxScore);
}