int max = 0;
string maxName = "";
for(int x = 0; x < score.Length;x++)
{
if(score[x] > max)
{
max = score[x];
maxName = name[x];
}
}
string maxName = "";
for(int x = 0; x < score.Length;x++)
{
if(score[x] > max)
{
max = score[x];
maxName = name[x];
}
}
int []score = new int[]{89,90,98,56,60,91,93,85};
string[] name = new string[8] { "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" };
string[] name = new string[8] { "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" };