我很迷...
using System;
using System.Collections.Generic;
using System.Text;
namespace projGetMaxScore
{
class Program
{
static void Main(string[] args)
{
string[]
name = new string[] { "吴松", "钱东宇", "伏晨", "陈陆", "林日鹏", "何昆", "关欣" };
int[] number = new int[] { 89, 90, 98, 56, 60, 91, 93, 85 };
string temp = name[0];
int x = number[0];
for (int i = 0; i <= number.Length; i++)
{
if (number[i] > x)
{
temp = name[i];
x = number[i];
}
}
Console.Write("分数最高的是{0},分数是{1}",x,temp);
}
}
}
有谁看出问题的