static void Main(string[] args)
{
int max =0;
string[] names = { "吴松", "钱东宇", "伏晨","陈陆","周蕊","林日鹏","何昆","关欣" };
int[] score = { 89, 90, 98,56,60,91,93,85 };
for(int x=0;x<score.Length;x++)
{
if (score[x]>score[max])
{
max++;
}
}
Console.WriteLine("分数最高的是{0},分数是{1}",names[max],score[max]);
}
max++; 错了,应是把x的值付给max,正确答案是:max=x;