关于本节习题
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _20180727
{
class Program
{
static void Main(string[] args)
{
string [] names =new string [8]{ "吴松" , "钱东宇", "伏晨" , "陈陆" , "周瑞" , "林日彭" , "何坤" , "关欣" };
int[] score = new int[8] { 89, 90, 98, 56, 60, 91, 93, 85 };
int max = 0;
int j= 0;
for (int i = 0; i < score.Length;i++ )
{
if (max < score[i])
{
max = score[i];
j = i;
}
}
Console.WriteLine("分数最高的是" + names [j]+"," + "分数是" + max );
}
}
}
我看到别人这样写,但是我不知道具体的意思,有大神能解释这些语句吗?谢谢