谁帮我解决一下,我在Vs上边运行没问题呀。上边运行不通过
int[] score = { 89, 90, 98, 56, 60, 91, 93,85 };
string[] name = { "吴松 ", "钱东宇", "伏晨", "陈陆", "周蕊","林日鹏", "何昆", "关昕" };
int temp=score[0];
string s="n";
for(int i=0;i<score.Length;i++)
{
if (score[i] > temp)
{
temp = score[i];
s = name[i];
}
}
Console.WriteLine("分数最高的是{0},分数是{1}", s, temp);
Console.ReadKey();