摘要: /* Title: 冒泡排序 Author: eman lee 算法功能:冒泡排序算法实现将一个长度为n的线性表r上的所有元素按关键字升序排列。 */ #include void bubblesort(int r[],int n) { /*elements are stored in r[1] to r[n]*/ int i,j,flag; int temp; flag=1; ... 阅读全文
posted @ 2007-10-16 23:18 emanlee 阅读(420) 评论(0) 推荐(0) 编辑
摘要: /* Title: 直接插入排序 Author: eman lee 算法功能:实现将一个长度为n的线性表r上的所有元素按关键字升序排列。 */ #include void insertsort (int r[] , int n) { /*r[0] is preserved, elements are stored in r[1] to r[n]*/ int i,j; for (... 阅读全文
posted @ 2007-10-16 23:17 emanlee 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 实验三 参考源程序 //软件基础 教材 79 页 习题6 答案 //Eman Lee #include #include #define m 5 //队列容量 //定义队列的结构 struct queue { int seq[m];//队列元素 int quelen;//队列中元素个数 int rear;//队列尾指针 }; //初始化队列 struct queue ... 阅读全文
posted @ 2007-10-16 23:04 emanlee 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 实验二 参考源程序 /* Author : Eman Lee, 计算机软件基础 教材 P79, ex4 设有一头为head的带头结点的单链表,其数据域为整形数据且递增有序。 试写一算法,将元素插入链表适当的位置,以保持链表的有序性。 */ #include #include typedef int DataType; struct nodetype//Define node 定义节点 { ... 阅读全文
posted @ 2007-10-16 23:03 emanlee 阅读(369) 评论(0) 推荐(0) 编辑
摘要: ------------------------------------------------------------------ 实验一 参考源程序 // 线性表的顺序存储(顺序表) // Author: Eman Lee #include void SearchMultipleLocation(char List[],int *ListLength,char key) { int i... 阅读全文
posted @ 2007-10-16 23:02 emanlee 阅读(437) 评论(0) 推荐(0) 编辑
摘要: P111,第3题 参考答案 先序遍历: A B D G H C E I F J 中序遍历: G D H B A E I C F J 后序遍历: G H D B I E J F C A 顺序存储结构: 位置 1 ... 阅读全文
posted @ 2007-10-16 22:59 emanlee 阅读(424) 评论(0) 推荐(0) 编辑
摘要: http://aspnet.4guysfromrolla.com/articles/021506-1.aspx By Scott Mitchell Introduction When creating ASP.NET 2.0 applications, developers commonly store sensitive configuration information in the We... 阅读全文
posted @ 2007-10-16 12:23 emanlee 阅读(595) 评论(0) 推荐(0) 编辑