上一页 1 2 3 4 5 6 7 ··· 27 下一页
摘要: 1、堆栈结构下串基本操作的实现 #include<stdio.h> #include<assert.h> #include<malloc.h> #include<string.h> typedef struct HString //串使用堆存储结构的实现 定义 { char *ch; //串数据存储 阅读全文
posted @ 2022-06-24 19:32 往心。 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1、顺序结构下实现循环队列 #include<stdio.h> #include<assert.h> #include<malloc.h> #define ElemType int #define MAXSIZE 9 typedef struct Queue //队列节点结构体 { ElemType 阅读全文
posted @ 2022-06-23 19:21 往心。 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 1、链队基本操作的实现 #include<stdio.h> #include<assert.h> #include<malloc.h> #define EType int typedef struct QueueNode //队列节点结构体 { EType data; //节点数据域 struct 阅读全文
posted @ 2022-06-21 19:11 往心。 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 1、利用顺序栈实现进制的转换(该节代码文件类型均为.cpp) #include<stdio.h> #include<malloc.h> #include<assert.h> #include<stdlib.h> #include<iostream> #define ElemType int #def 阅读全文
posted @ 2022-06-20 18:55 往心。 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1、栈的基本结构以及顺序实现下的一些基本操作 #include<stdio.h> #include<malloc.h> #include<assert.h> #include<stdlib.h> #define ElemType int #define STACK_INIT_SIZE 8 #defi 阅读全文
posted @ 2022-06-19 16:45 往心。 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1、关于org.apache.commons.dbutils中handlers.BeanListHandler<T> 部分源码如下: public List<Object> getList(Class type, String sql) { QueryRunner qr = new QueryRun 阅读全文
posted @ 2022-06-19 15:22 往心。 阅读(42) 评论(0) 推荐(0) 编辑
摘要: // 线性表的动态分配顺序存储结构 #define LIST_INIT_SIZE 100 //线性表存储空间的初始分配量 #define LISTINCREMENT 10 //线性表存储空间的分配增量 typedef struct { int *elem; //存储空间基地址 int length; 阅读全文
posted @ 2022-06-18 19:12 往心。 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1、合并A、B线性表至A表中并去除重复元素 //此函数为合并线性表A和B的函数 合并两表重复元素 void union(List &La,List Lb) //该函数中La作为输入和输出。Lb作为输入 { //将所有在线性表Lb中但不在La中的数据元素插入到La中 La_len = ListLeng 阅读全文
posted @ 2022-06-16 18:55 往心。 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 4 阅读全文
posted @ 2022-06-15 19:45 往心。 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1、实现矩阵的加减乘、矩阵的逆、矩阵的特征值和特征值等运算 timu2.cpp (代码说明: 1、timu2.cpp 文件对后三个.cpp文件进行引用,运行时需要放在同一文件目录下 2、juzhennis.cpp 文件实现了3x3矩阵的逆运算 3、bianyuans.cpp 文件实现了带有变量的矩阵 阅读全文
posted @ 2022-06-15 19:45 往心。 阅读(12) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 27 下一页