哪里有问题吗?
string[] names = new string[]{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] scores = new int[]{89,90,98,56,60,91,93,85};
int t=0;
int max=scores[0];
for(int i=1;i<scores.Length;i++)
{
if (max < scores[i])
{
max = scores[i];
t=i;
}
}
Console.WriteLine("分数最高的是" + names[t]+",分数是"+max);