Fork me on GitHub
上一页 1 ··· 4 5 6 7 8
摘要: 这是我用ArrayList集合类做的小程序,用来展示冒泡排序算法的过程,相关代码和界面如下。 界面:代码:[C# Code(WPF)]:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Windows;usingSystem.Windows.Controls;usin 阅读全文
posted @ 2009-04-23 21:17 TimGong 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 界面:代码部分: C# Code:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windows.Data;usingSystem.Windows.Docume 阅读全文
posted @ 2009-04-20 22:34 TimGong 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: 数组和集合类的主要差异:数组需要声明它所容纳的元素的类型,而集合则不需要。原因:集合是以object的形式来存储它所容纳的元素的。数组的实例具有固定的大小,不能随意增大或缩小。而集合可根据需要动态改变大小。数组可以是多维的,但集合是线性的。(集合可以嵌套,其元素可以是其他集合,这样我们可以模拟一个多维数组,但是会影响程序的可读性)。下面是常用的五个集合类的示例{(ArrayList、Queue、Stack、Hashtable、SortedList),(引自Visual C#2008 从入门到精通):C# Code:Code highlighting produced by Actipro Co 阅读全文
posted @ 2009-04-15 16:54 TimGong 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 刚开始学C#不久,这是我写的一个小程序(WPF)。界面:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Windows;usingSystem.Windows.Controls;usingSystem.Windows.Data;usingSystem.Win 阅读全文
posted @ 2009-03-25 22:34 TimGong 阅读(312) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8