C#
weixin_37781006
这个作者很懒,什么都没留下…
展开
-
C#简单实现顺序队列与链队列
同理顺序队列:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace test_05 { interface IQueue<T> { int Count { ...原创 2018-02-26 23:02:30 · 456 阅读 · 0 评论 -
C#简单实现顺序栈与链式栈
其实就是顺序表与链表的简化版本接口:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace learn_03 { interface IStackDS<T> { ...原创 2018-02-26 21:01:59 · 560 阅读 · 0 评论 -
C#简单实现单链表节点类
先创建一个接口类,指明要实现的函数using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace learn_04 { interface IListDS<T> { ...原创 2018-02-26 19:51:14 · 1115 阅读 · 0 评论 -
C#使用泛型数组简单实现一个列表List
简单实现一个List,添加了几个常见的方法using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace learn_01 { class MyList<T> where T : IComp...原创 2018-02-11 15:21:46 · 3607 阅读 · 0 评论