同学们注意审题两个数组
string[] name = new string[] {"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] score = new int[] { 89,90,98,56,60,91,93,85 };
int max = 0;
string ws= "";
for (int a=0;a<= 7;a++)
{
if (max<score[a])
{
max =score[a];
ws =name[a];
}
}
Console.Write("分数最高的是{0},分数是{1},", ws,max);
string[] name = new string[] {"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] score = new int[] { 89,90,98,56,60,91,93,85 };
int max = 0;
string ws= "";
for (int a=0;a<= 7;a++)
{
if (max<score[a])
{
max =score[a];
ws =name[a];
}
}
Console.Write("分数最高的是{0},分数是{1},", ws,max);
string str=Console.ReadLine();
int y=Convert.TonInt32(str);
if(y<6 || y>60)
Console.WriteLine("请坐爱心座"):
else
Console.WriteLine("请坚持一下"):
int y=Convert.TonInt32(str);
if(y<6 || y>60)
Console.WriteLine("请坐爱心座"):
else
Console.WriteLine("请坚持一下"):
2020-09-07
已采纳回答 / qq_Azazel_dCMSTX
string[] job =new string[]{"经理","项目主管","技术总监","财务主管"};new string后面少了个”[]“
2020-08-29