new Student("陈陆",56),
new Student("周蕊",60),
new Student("林日鹏",91),
new Student("何昆",93),
new Student("关欣",85)
};
TheHightestScoreStudent(students);
}
new Student("周蕊",60),
new Student("林日鹏",91),
new Student("何昆",93),
new Student("关欣",85)
};
TheHightestScoreStudent(students);
}
namespace projGetMaxScore
{
class Program
{
static void Main(string[] args)
{
List<Student> students = new List<Student>{
new Student("吴松",89),
new Student("钱冬宇",90),
new Student("伏晨",98),
{
class Program
{
static void Main(string[] args)
{
List<Student> students = new List<Student>{
new Student("吴松",89),
new Student("钱冬宇",90),
new Student("伏晨",98),
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Linq;
for (int x = 1; x <= 7; x++)
{
Console.Write(x);
if(x==y)
break;
{
Console.Write(x);
if(x==y)
break;
2018-04-16
for(int i=0;i<score.Length;i++)
{
if(score[i]>max)
{
max=score[i];
x=i;
}
}
Console.WriteLine("分数最高的是{0},分数是{1}",name[x],score[x]);
{
if(score[i]>max)
{
max=score[i];
x=i;
}
}
Console.WriteLine("分数最高的是{0},分数是{1}",name[x],score[x]);
string[] name=new string[]{"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"};
int[] score=new int[]{89,90,98,56,60,91,93,85};
int x=0;
int max=0;
int[] score=new int[]{89,90,98,56,60,91,93,85};
int x=0;
int max=0;
namespace Test
{
class Program
{
static void Main(string[] args)
{
int y = 5;
while ( y <=5 && y >= 1 )//请输入
{
Console.Write(y+" ");
y--;//请输入
}
}
}
}
{
class Program
{
static void Main(string[] args)
{
int y = 5;
while ( y <=5 && y >= 1 )//请输入
{
Console.Write(y+" ");
y--;//请输入
}
}
}
}
2018-04-14