运行成功,输出失败,是哪的问题
using System;
using System.Collections.Generic;
using System.Text;
namespace projGetMaxScore
{
class Program
{
static void Main(string[] args)
{
string[] name={"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] sorce={89,90,98,56,60,91,93,85};
int max=0;
int i=0;
for(int x=0;x<sorce.Length;x++)
{
if(sorce[x]>max)
{
max=sorce[x];
i=x;
}
}
Console.WriteLine("分数最高的是"+name[i]+",分数是"+max);
}
}
}