摘要:
01.byte[] head = new byte[] { 0x7e }; 02.byte[] type = new byte[] { 0x00 }; 03.byte[] content = Encoding.Default.GetBytes("ABCDEGF"); 04.byte[] last = new byte[] { 0x23 }; 05.byte[] full=new byte[head.Length+type.Length+content.Length+last.Length]; 06.//head.CopyTo(full,0); 07.//type.CopyT 阅读全文
摘要:
上一篇的解决办法显然不是最优的,先在找到了一种最优的解决办法,利用Directory进行合并数组,去除重复项。代码如下:效果如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace DouHaoCount{ class Program { static void Main(string[] args) { long T1 = DateTime.Now.Ticks; Dictionary<int, int> dic = new Dictionary< 阅读全文
摘要:
private static char[] constant = { '0','1','2','3','4','5','6','7','8','9', 'a','b','c','d','e','f','g','h','i','j','k','l', 阅读全文