string[,] stu = new string[8, 2] { { "吳松", "89"}, { "錢東宇","90"}, {"伏晨","98" }, {"陳陸","56" }, ...} ;
int max = 0;int key=0;
for(int i = 0 ; i< stu.GetLength(0);i++)
{
if (Convert.ToInt32(stu[i, 1]) > max)
{max = Convert.ToInt32(stu[i, 1]);key = i;}
}
stu[key,0],stu[key,1];
int max = 0;int key=0;
for(int i = 0 ; i< stu.GetLength(0);i++)
{
if (Convert.ToInt32(stu[i, 1]) > max)
{max = Convert.ToInt32(stu[i, 1]);key = i;}
}
stu[key,0],stu[key,1];