04 2013 档案

年度单身舞会队列
摘要:using System;using System.Collections;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;namespace TestOfQueueDancers{ class Program { static void Main(string[] args) { Queue males = new Queue(); Queue females = new Queue();... 阅读全文

posted @ 2013-04-26 10:06 Yours风之恋 阅读(135) 评论(0) 推荐(0)

简单的用堆栈实现的表达式计算
摘要:using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Text.RegularExpressions;namespace 简单表达式求解{ class Program { static void Main(string[] args) { Stack numbs = new Stack(); Stack ops = new St... 阅读全文

posted @ 2013-04-25 14:20 Yours风之恋 阅读(254) 评论(0) 推荐(0)

自定义堆栈(回文检测)
摘要: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风之恋 阅读(165) 评论(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风之恋 阅读(282) 评论(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风之恋 阅读(178) 评论(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风之恋 阅读(200) 评论(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风之恋 阅读(133) 评论(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风之恋 阅读(153) 评论(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风之恋 阅读(160) 评论(0) 推荐(0)

WPF(MultiTrigger)
摘要: 阅读全文

posted @ 2013-04-19 08:45 Yours风之恋 阅读(234) 评论(0) 推荐(0)

WPF(Trigger)
摘要: 阅读全文

posted @ 2013-04-19 08:39 Yours风之恋 阅读(169) 评论(0) 推荐(0)

WPF(命令参数)
摘要:using System.Windows;namespace TestOfCommandParameter{ /// /// Interaction logic for MainWindow.xaml /// publi... 阅读全文

posted @ 2013-04-18 11:30 Yours风之恋 阅读(207) 评论(0) 推荐(0)

WPF(附加属性 Slider)
摘要:----------------------------------------------------------------------------------->等效的C#代码using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;us... 阅读全文

posted @ 2013-04-11 14:15 Yours风之恋 阅读(295) 评论(0) 推荐(0)

WPF(附加属性)
摘要:using System.Windows;namespace TestOfAttachProperty{ /// /// Interaction logic for MainWindow.xaml /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private void Button_Click(object se... 阅读全文

posted @ 2013-04-11 13:53 Yours风之恋 阅读(229) 评论(0) 推荐(0)

WPF(依赖属性)
摘要:using System.Windows;using System.Windows.Controls;using System.Windows.Data;namespace TestOfFirstDependencyObject{ /// /// Interaction logic for MainWindow.xaml /// public partial class MainWindow : Window { private Student stu; public ... 阅读全文

posted @ 2013-04-11 10:50 Yours风之恋 阅读(155) 评论(0) 推荐(0)

WPF(MultiBinding 数据对比验证,启用提交)
摘要:using System;using System.Linq;using System.Windows;using System.Windows.Controls;using System.Windows.Data;namespace TestOfMultiBinding{ /// /// Interaction logic for MainWindow.xaml /// public partial class MainWindow : Window { ... 阅读全文

posted @ 2013-04-09 19:17 Yours风之恋 阅读(250) 评论(0) 推荐(0)

WPF(Converter 练习[很详细])
摘要:using System;using System.Collections.Generic;using System.G... 阅读全文

posted @ 2013-04-09 17:05 Yours风之恋 阅读(477) 评论(0) 推荐(0)

WPF( 数据验证)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Med... 阅读全文

posted @ 2013-04-09 15:04 Yours风之恋 阅读(222) 评论(0) 推荐(0)

WPF(Binding of RelativeSource)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;u... 阅读全文

posted @ 2013-04-09 15:02 Yours风之恋 阅读(143) 评论(0) 推荐(0)

WPF(Binding of ObjectDataProvider)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Med... 阅读全文

posted @ 2013-04-09 15:00 Yours风之恋 阅读(184) 评论(0) 推荐(0)

WPF(Binding of LinQ)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Wind... 阅读全文

posted @ 2013-04-09 14:58 Yours风之恋 阅读(165) 评论(0) 推荐(0)

WPF(Binding of ItemsControl)
摘要:using System;using System.Collections.Generic;using Syst... 阅读全文

posted @ 2013-04-09 14:56 Yours风之恋 阅读(171) 评论(0) 推荐(0)

WPF(初识DataTemplate)
摘要:using System;using System.Collections.Generic;using Syst... 阅读全文

posted @ 2013-04-08 19:16 Yours风之恋 阅读(187) 评论(0) 推荐(0)

WPF(Binding集合对象数据源)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using Sy... 阅读全文

posted @ 2013-04-08 18:42 Yours风之恋 阅读(422) 评论(0) 推荐(0)

WPF(Binding)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows. 阅读全文

posted @ 2013-04-07 20:03 Yours风之恋 阅读(144) 评论(0) 推荐(0)

WPF(Grid与布局)
摘要:... 阅读全文

posted @ 2013-04-03 14:20 Yours风之恋 阅读(188) 评论(0) 推荐(0)

WPF(ContentControl和ItemsControl)
摘要:using System;usin... 阅读全文

posted @ 2013-04-01 16:25 Yours风之恋 阅读(286) 评论(0) 推荐(0)