随笔分类 -  C#

摘要:服务器端程序 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Net; 5 using System.Net.Sockets; 6 using System.Text; 7 阅读全文
posted @ 2018-10-22 12:08 QQW的进化之旅 阅读(570) 评论(0) 推荐(0)
摘要:收集一些从网上看到的例题 1.抽象类 抽象类不能被实例化一个抽象类只能通过接口和作为其它类的基类使用 抽象方法的声明只能在抽象类中 抽象方法必定不能实现(方法带一对{}都不行) 当一个子类集成自抽象类时,必须实现其中的抽象方法(override重写) 1 public abstract class 阅读全文
posted @ 2018-10-21 23:15 QQW的进化之旅 阅读(226) 评论(0) 推荐(0)
摘要:具体规则可以从参考网上 下面举个例子: 匹配IP地址: IPV4地址格式:0-255.0-255.0-255.0-255 具体分析: 一、25,0-5 为250时,个位为0-5; 二、20-4,0-9 当其为200时的情况,十位为0-4,个位为0=9; 三、0-1,0-9,0-9 当为200以下时, 阅读全文
posted @ 2018-10-19 10:55 QQW的进化之旅 阅读(242) 评论(0) 推荐(0)
摘要:参考书籍:《算法图解》《啊哈!算法》 1.二分查找 时间复杂度 log2(N) 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.T 阅读全文
posted @ 2018-06-22 14:54 QQW的进化之旅 阅读(220) 评论(0) 推荐(0)
摘要:1.库 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace CardLib 7 { 8 public enum Suit 9 { 10 阅读全文
posted @ 2018-05-25 12:00 QQW的进化之旅 阅读(557) 评论(0) 推荐(0)
摘要:1.整数类型 2.浮点数类型 3.文本和布尔值类型 4.字面值 5.转义序列 6.运算符 PS:对于string字符串来说,“+”相当于把两个字符串相连,“A”+“B”=“AB” 7.++和-- PS:++b是先+1后运算,b++是先运算后+1 8.赋值运算符 PS:var1 /= var2/var 阅读全文
posted @ 2018-05-14 09:57 QQW的进化之旅 阅读(112) 评论(0) 推荐(0)