用这些代码可以不?
string[] names=new string[]{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何晶","关欣"};
int[] scores=new int[]{89,90,98,56,60,91,93,85};
int max=0;
string name="";
for(int i=0;i<scores.Length;i++)
{
if(max<scores[i])
{
max=scores[i];
name=names[i];
}
}
Console.Write("分数最高的是{0},分数是{1}",name,max);