using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DelegateDemo1
{
class Program
{
static void Main(string[] args)
{
Employee[] employees = {
new Employee("roles_gris0",4000),
new Employee("roles_gris1",1000),
new Employee("roles_gris2",7000),
new Employee("roles_gris3",2000),
new Employee("roles_gris4",9000),
new Employee("roles_gris5",8000),
new Employee("roles_gris6",8000),
new Employee("roles_gris7",6000),
};
BubbleSorter.Sort(employees, Employee.CompareSalary);
foreach (var employee in employees)
{
Console.WriteLine(employee);
}
Conso
C#之冒泡排序(委托)
最新推荐文章于 2021-03-24 16:30:14 发布