标签:key div 9.png 姓名 read string http 分享图片 info
String[] names = { "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" }; int[] scores = { 89, 90, 98, 56, 60, 91, 93, 85 }; int max = scores[0]; int index=0;//记录最大值索引位置 for (int i = 1; i < scores.Length; i++) { if (max < scores[i]) { max = scores[i]; index = i; } } Console.WriteLine("最高分为:"+max); Console.WriteLine("姓名是:" + names[index]); Console.ReadKey();
标签:key div 9.png 姓名 read string http 分享图片 info
原文地址:https://www.cnblogs.com/xixixing/p/9565188.html