請問哪里出錯了
using System;
using System.Collections.Generic;
using System.Text;
namespace projGetMaxScore
{
??? class Program
??? {
??????? static void Main(string[] args)
??????? {
??????????? string[,] scroe={{ "吳松","89"},{ "錢東宇","90"},{ "伏晨","98"},{ "陳陸","56"},{ "周蕊","60"},{ "林日鵬","91"},{ "何昆","93"},{ "關(guān)欣","85"}}; ? ? ? ? ?
? int max=score[0,1];
??????????? for (int i =0;i<score.GetLongLength(0);i++)
??????????? {??
??????????????? if (max<string[i,1])
??????????????? {
??????????????????? max=string[i,1];
??????????????? }
??????????? }
??????????? Console.Write("分?jǐn)?shù)最高的是{0},分?jǐn)?shù)是{1}",score[i,0],score[i,1]);
??????? }
??? }
}
2018-12-13
定義二維數(shù)組的格式就錯了