摘要: 单例模式的核心:一是某个类只能有一个实例;二是它必须自行创建这个实例;三是它必须自行向整个系统提供这个实例。 写法过程: 1.创建一个静态变量用来生成实例 2.构造私有化 3.返回实例 阅读全文
posted @ 2018-04-16 20:59 游戏鼻祖 阅读(190) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InsertAlgorithm { class Program { static int[] num = new... 阅读全文
posted @ 2018-04-16 20:19 游戏鼻祖 阅读(172) 评论(0) 推荐(0)