- 博客(5)
- 收藏
- 关注
原创 冒泡排序(一:检测到没有数据发生交换时立即终止循环,输出结果)
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 冒泡排序拓展 { class Program { /// <summary> ///...
2018-09-13 11:23:46 1523
原创 冒泡排序(二:通过使用泛型和委托,实现通用排序方法)
首先是冒泡排序方法: 因为方法是通用的,并不知道需要进行排序的类型是什么,所以需要使用泛型,传入的数组也是该泛型数组。 比较过程中,需要用到的方法通过委托作为参数传递到冒泡排序方法内。 代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Syst...
2018-09-13 11:23:30 693
转载 委托——C#委托和事件详解
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Csharp委托和事件详解 { /* * 作者:Ai * 时间:2018.3.1 * * ps:委托和事件我已经学习了好几遍了,但隔得时间长了总是又忘记...
2018-09-06 15:01:02 181
原创 委托——Func委托
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Func委托 { class Program { // ****************************...
2018-09-06 11:44:10 142
原创 委托——Action委托使用
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Action委托 { class Program { // **************************...
2018-09-01 11:13:39 3978
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人