摘要:
1、堆栈结构下串基本操作的实现 #include<stdio.h> #include<assert.h> #include<malloc.h> #include<string.h> typedef struct HString //串使用堆存储结构的实现 定义 { char *ch; //串数据存储 阅读全文
摘要:
1、顺序结构下实现循环队列 #include<stdio.h> #include<assert.h> #include<malloc.h> #define ElemType int #define MAXSIZE 9 typedef struct Queue //队列节点结构体 { ElemType 阅读全文
摘要:
1、链队基本操作的实现 #include<stdio.h> #include<assert.h> #include<malloc.h> #define EType int typedef struct QueueNode //队列节点结构体 { EType data; //节点数据域 struct 阅读全文
摘要:
1、利用顺序栈实现进制的转换(该节代码文件类型均为.cpp) #include<stdio.h> #include<malloc.h> #include<assert.h> #include<stdlib.h> #include<iostream> #define ElemType int #def 阅读全文
摘要:
1、栈的基本结构以及顺序实现下的一些基本操作 #include<stdio.h> #include<malloc.h> #include<assert.h> #include<stdlib.h> #define ElemType int #define STACK_INIT_SIZE 8 #defi 阅读全文
摘要:
1、关于org.apache.commons.dbutils中handlers.BeanListHandler<T> 部分源码如下: public List<Object> getList(Class type, String sql) { QueryRunner qr = new QueryRun 阅读全文
摘要:
// 线性表的动态分配顺序存储结构 #define LIST_INIT_SIZE 100 //线性表存储空间的初始分配量 #define LISTINCREMENT 10 //线性表存储空间的分配增量 typedef struct { int *elem; //存储空间基地址 int length; 阅读全文
摘要:
1、合并A、B线性表至A表中并去除重复元素 //此函数为合并线性表A和B的函数 合并两表重复元素 void union(List &La,List Lb) //该函数中La作为输入和输出。Lb作为输入 { //将所有在线性表Lb中但不在La中的数据元素插入到La中 La_len = ListLeng 阅读全文