C# 实现 冒泡排序
摘要:using System;using System.Collections.Generic;using System.Text;using System.Collections;/*** * * 冒泡排序 * * * * **/namespace TestConsole{ class Program { static void Main(string[] args) { int[] array = {32,24 ,21,20,18,3,8,57}; BubbleSort(array); ...
阅读全文
posted @
2011-09-14 23:37
别人叫我军师
阅读(198)
推荐(0)
集合之sortlist
摘要:using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace TestConsole{ class Program { static ...
阅读全文
posted @
2011-09-14 22:55
别人叫我军师
阅读(200)
推荐(0)
集合之HashTable
摘要:using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace TestConsole{ class Program { static void Main(string[] args) { Hashtable ht = new Hashtable(); ht.Add("first","One"); ht.Add("second", "Two"); ...
阅读全文
posted @
2011-09-14 22:46
别人叫我军师
阅读(125)
推荐(0)
集合之队列
摘要:using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace TestConsole{ class Program { static void Main(string[] args) { Queue q = new Queue(); Queue q2 = new Queue(); foreach (int i in new int[4] { 1, 2, 3...
阅读全文
posted @
2011-09-14 22:28
别人叫我军师
阅读(190)
推荐(0)
集合之栈
摘要:using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace TestConsole{ class Program { static void Main(string[] args) { Stack sk = new Stack(); Stack sk2 = new Stack(); foreach (int i in new int[4] { 1, 2,...
阅读全文
posted @
2011-09-14 22:14
别人叫我军师
阅读(148)
推荐(0)