上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: 1: #include <stdio.h> 2: #include <stdlib.h> 3: 4: typedef struct node { 5: int data; 6: int freq; 7: struct node *prior; 8: struct node *next; 9: } dbLNode, *dbLinkList; 10: 11: /*创建一个双向... 阅读全文
posted @ 2010-05-29 11:57 红脸书生 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 1: #include <stdio.h> 2: #include <stdlib.h> 3: #define STACK_INIT_SIZE 20 4: #define STACKINCREMENT 10 5: 6: typedef char ElemType; /*将char类型定义为ElemType*/ 7: typedef struct { /*定义一个栈类型*/ ... 阅读全文
posted @ 2010-05-29 11:46 红脸书生 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 1、匹配纯文本 正则表达式可以只包含纯文本 (1)有多个匹配结果 绝大多数正则表达式引擎的默认行为是只返回第1个匹配结果,但是根据具体的实现,提供了不同的方法把所有的匹配结果全部找出来。 (2)字母的大小写问题正则表达式是区分大小写的。具体实现可通过标志来强制进行不区分大小写。 2、匹配任意字符 正则表达式的特殊字符用于给出要搜索的东西。 “ . ”字符(英文句号)可以匹配任何一个单个字符、字母... 阅读全文
posted @ 2010-05-28 11:20 红脸书生 阅读(3319) 评论(0) 推荐(0) 编辑
摘要: 1: #include <stdio.h> 2: #include <stdlib.h> 3: #define STACK_INIT_SIZE 20 4: #define STACKINCREMENT 10 5: 6: typedef char ElemType; /*将char类型定义为ElemType*/ 7: 8: typedef struct{ /*定义一个栈类型*... 阅读全文
posted @ 2010-05-28 10:27 红脸书生 阅读(988) 评论(0) 推荐(0) 编辑
摘要: 同时使用一个栈和一个队列 阅读全文
posted @ 2010-05-28 10:14 红脸书生 阅读(1462) 评论(0) 推荐(0) 编辑
摘要: 1: #include <stdio.h> 2: #include <math.h> 3: #include <stdlib.h> 4: #define STACK_INIT_SIZE 20 5: #define STACKINCREMENT 10 6: 7: typedef char ElemType; 8: typedef struct { 9: Elem... 阅读全文
posted @ 2010-05-28 10:11 红脸书生 阅读(1657) 评论(0) 推荐(0) 编辑
摘要: 1: #include <stdio.h> 2: #include <stdlib.h> 3: 4: /*链表结点定义*/ 5: typedef struct node { 6: int number; /*编号*/ 7: int psw; /*个人密码*/ 8: struct node *next; 9: } LNode, *LinkList; 10: 11: 12:... 阅读全文
posted @ 2010-05-28 09:21 红脸书生 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 1: #include <stdio.h> 2: #include <stdlib.h> 3: 4: /*定义int为ElemType类型*/ 5: typedef int ElemType; 6: 7: /*定义链表的结点类型*/ 8: typedef struct node { 9: ElemType data; /*数据域*/ 10: struct node *ne... 阅读全文
posted @ 2010-05-28 09:09 红脸书生 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 1: /******************************************Dynamic Sort*************************************************/ 2: #include <string.h> 3: #include <stdio.h> 4: #include <malloc.h> 5: 6:... 阅读全文
posted @ 2010-05-28 09:02 红脸书生 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 利用原表的存储空间将顺序表(a1,a2,……,an)逆置为(an,an-1,………a1)。 阅读全文
posted @ 2010-05-28 08:55 红脸书生 阅读(3135) 评论(1) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页