运行成功 输出错误
string [,]nScore=new[,]{{"吴松","89"},{"钱东宇","90"},{"伏晨","98"},{"陈陆","56"},{"周蕊","60"},{"林日鹏","91"},{"何昆","93"},{"关欣","85"}};
string name="";
int maxScore=0;
for (int i=0; i<nScore.GetLength(0);i++)
{
if (maxScore<Convert.ToInt32(nScore[i,1]))
{
maxScore=Convert.ToInt32(nScore[i,1]);
name=nScore[i,0];
}
}
Console.WriteLine("分数最高的是{0},分数是{1}",name,maxScore);