10 2012 档案

摘要:很久很久以前,有一群人,他们决定用8个可以开合的晶体管来组合成不同的状态,以表示世界上的万物。他们看到8个开关状态是好的,于是他们把这称为"字节"。 再后来,他们又做了一些可以处理这些字节的机器,机器开动了,可以用字节来组合出很多状态,状态开始变来变去。他们看到这样是好的,于是它们就这机器称为"计算机"。 开始计算机只在美国用。八位的字节一共可以组合出256(2的8次方)种不同的状态。 他 们把其中的编号从0开始的32种状态分别规定了特殊的用途,一但终端、打印机遇上约定好的这些字节被传过来时,就要做一些约定的动作。遇上00x10, 终端就换行,遇上0x0 阅读全文
posted @ 2012-10-26 21:27 威少 阅读(181) 评论(0) 推荐(0)
摘要:static void Main(string[] args) { string s = "Hello_C#_World!##"; string newS= CutStr(s, 5); Console.Write(newS); Console.Read(); } /// <summary> /// 截取字符串 /// </summary> /// <param name="str">待截取的字符串</param> ... 阅读全文
posted @ 2012-10-25 22:18 威少 阅读(859) 评论(0) 推荐(0)
摘要:Viewclass Program { static void Main(string[] args) { //BubbleSort(); //SelectSort(); //int[] arr = new int[] { 49, 38, 65, 97, 76, 13, 27 }; int[] arr = GetNumber(); QuickSort(arr, 0, arr.Length - 1); for (int i = 0;... 阅读全文
posted @ 2012-10-25 13:11 威少 阅读(349) 评论(0) 推荐(0)
摘要:class Program { static void Main(string[] args) { RevertStr(); Console.Read(); } public static void RevertStr() { string str = "I_am_a_student"; string newStr = ""; string[] str1 = str.Split('_'); ... 阅读全文
posted @ 2012-10-23 18:51 威少 阅读(221) 评论(0) 推荐(0)