求解???
int[] num = new int[]{89,90,98,56,60,91,93,85};
string[] xingming = new string[]{ "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" };
int max = num[0];
string name = xingming[0];
for (int i = 0; i < num.Length; i++)
{
if (num[i] > max) {
max = num[i];
name = xingming[i];
break;//这里加个break就不对了?为啥
}
}
Console.Write("分数最高的是{0},分数是{1}", name, max);