string[,] scores = {{"吴松", "89"},{"钱东雨", "90"}, {"伏晨", "98"} };
string[] temp = {scores[0,0], scores[0,1]};
for (int i = 0; i < scores.GetLongLength(0); i++){
if (Convert.ToInt32(scores[i,1]) > Convert.ToInt32(temp[1])) {
temp[0] = scores[i,0];temp[1] = scores[i,1];
}
}
string[] temp = {scores[0,0], scores[0,1]};
for (int i = 0; i < scores.GetLongLength(0); i++){
if (Convert.ToInt32(scores[i,1]) > Convert.ToInt32(temp[1])) {
temp[0] = scores[i,0];temp[1] = scores[i,1];
}
}
char[,] ch = { {'我','是','软'},{'件','工','程'},{'师','啦','!'}};
Console.WriteLine("{0}{1}{2}",ch[1,1],ch[1,2],ch[2,0]);
Console.WriteLine("{0}{1}{2}",ch[1,1],ch[1,2],ch[2,0]);
2017-06-09