最赞回答 / 慕数据6914329
string[] name = new string []{ "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣" }; int[] score = new int[] { 89, 90, 98, 56, 60, 91, 93, 85 };你没有加[],for (int i = 0; i < score.Length; i++)不是<=,而是<更改后:using System;using System.Collection...
2018-04-01
学完这个课程,感觉可能是网页的原因吧,感觉答案挺死板的。而且出题的人特别爱玩Console.Write和Console.WriteLine这个梗
2018-03-31
string[,] tx = { { "吴松", "89" }, { "钱东宇", "90" }, { "伏晨", "98" }, { "陈陆", "56" }, { "周蕊", "60" }, { "林日鹏", "91" }, { "何昆", "93" }, { "关欣", "85" } };
int max = 0;
int j = -1;
int max = 0;
int j = -1;
for (int x = 1;x <= 6;x++ )//请填写for循环结构
{
Console.WriteLine("Yeah!");
}
{
Console.WriteLine("Yeah!");
}
int y = 5;
while (y >=1)//请输入
{
Console.Write(y+" ");
y--;//请输入
}
while (y >=1)//请输入
{
Console.Write(y+" ");
y--;//请输入
}
2018-03-31
int y = 5;
while (y<=5&&y>0)//请输入
{
Console.Write(y+" ");
--y;//请输入
}
while (y<=5&&y>0)//请输入
{
Console.Write(y+" ");
--y;//请输入
}
2018-03-30
string[] names=new string[]{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] score=new int[]{89,90,98,56,60,91,93,85};
int temp=0,max=score[0];
for(int i=1;i<score.Length;i++)
if(max<score[i])
{max=score[i];temp=i;}
Console.Write("分数最高的是{0},分数是{1}",names[temp],max);
int[] score=new int[]{89,90,98,56,60,91,93,85};
int temp=0,max=score[0];
for(int i=1;i<score.Length;i++)
if(max<score[i])
{max=score[i];temp=i;}
Console.Write("分数最高的是{0},分数是{1}",names[temp],max);
最新回答 / qq_RR_15
static void Main(string[] args) { int[] score={89,90,98,56,60,91,93,85}; string[] name={"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"}; int N=score[0];//假设第一个分是最高分 for (int i=1; i<score.Length; i++) ...
2018-03-30