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.Write("分数最高的是" + names[index] + "," + "分数是" + max);
Console.ReadKey();
int index = 0;
for (int i = 1; i < scores.Length; i++)
{
if (max <scores[i])
{
max=scores[i];
index = i;
}
}
Console.Write("分数最高的是" + names[index] + "," + "分数是" + max);
Console.ReadKey();
最赞回答 / 肆月初肆
using System;using System.Collections.Generic;using System.Text;namespace Test{ class Program { static void Main(string[] args) { Console.WriteLine(true|| false);//输出True Console.WriteLine(true && false);/...
2017-12-14
为什么 Console.WriteLine();就报错,改为Console.Write();就是对的,为什么?这两个不应该都正确么?
2017-12-14