上一页 1 2 3 4 5 6 7 8 ··· 18 下一页

自定义堆栈(回文检测)

摘要: using System;using System.Collections;namespace CStack{ class Program { static void Main(string[] args) { CStack alist = new CStack(); string ch; string word = "上海自来水来自海上"; bool isPalindrome = true; for (int x = 0; x 0) ... 阅读全文
posted @ 2013-04-25 10:50 Yours风之恋 阅读(160) 评论(0) 推荐(0) 编辑

基本排序算法(冒泡排序,选择排序,插入排序)后续[时间测试]

摘要: using System;using System.Diagnostics;namespace TestCArray{ class Program { static void Main(string[] args) { Timing sortTime = new Timing(); // int numItems = 1000; // int numItems = 10000; int numItems = 100000; C... 阅读全文
posted @ 2013-04-24 16:10 Yours风之恋 阅读(264) 评论(0) 推荐(0) 编辑

基本排序算法(冒泡排序,选择排序,插入排序)

摘要: using System;using System.Diagnostics;namespace TestCArray{ class Program { static void Main(string[] args) { CArray numbs = new CArray(10); Random rnd = new Random(10); for (int i = 0; i "); for (int i = 0; i arr[inner]) ... 阅读全文
posted @ 2013-04-24 14:51 Yours风之恋 阅读(169) 评论(0) 推荐(0) 编辑

时间测试

摘要: using System;using System.Collections.Generic;using System.Diagnostics;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 时间测试{ class Program { static void Main(string[] args) { int[] numbs = new int[100000]; BuildArray(numbs); ... 阅读全文
posted @ 2013-04-22 14:53 Yours风之恋 阅读(152) 评论(0) 推荐(0) 编辑

自定义Collection类

摘要: using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace MyCollection{ class Program { static void Main(string[] args) { Collection names = new Collection(); names.Add("... 阅读全文
posted @ 2013-04-22 14:52 Yours风之恋 阅读(119) 评论(0) 推荐(0) 编辑

泛型

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Generic{ internal class Program { private static void Main(string[] args) { int num1 = 100; int num2 = 200; Swap(ref num1, ref... 阅读全文
posted @ 2013-04-22 14:51 Yours风之恋 阅读(138) 评论(0) 推荐(0) 编辑

结构体

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace TestStruct{ /// /// 声明结构 /// public struct Name { private string fname, mname, lname; public Name(string first, string middle, string last) {... 阅读全文
posted @ 2013-04-22 14:50 Yours风之恋 阅读(153) 评论(0) 推荐(0) 编辑

WPF(MultiTrigger)

摘要: 阅读全文
posted @ 2013-04-19 08:45 Yours风之恋 阅读(225) 评论(0) 推荐(0) 编辑

WPF(Trigger)

摘要: 阅读全文
posted @ 2013-04-19 08:39 Yours风之恋 阅读(167) 评论(0) 推荐(0) 编辑

WPF(命令参数)

摘要: using System.Windows;namespace TestOfCommandParameter{ /// /// Interaction logic for MainWindow.xaml /// publi... 阅读全文
posted @ 2013-04-18 11:30 Yours风之恋 阅读(192) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页