-
数据结构——链表(双向循环链表)
双向循环链表节点:数据域+指针域指针域:一个指针指向前一个同类型节点,另一个指针指向后一个同类型节点(1)设计节点struct db_node{int data;struct db_node * prev;struct db_node * next;};(2)创建空链表//创建了一个只有头节点的双向循环链表,返回头节点的地址struct db_node * create_db_list(void){struct db_node * phead = (struct db_node *)malloc(sizeof(struct db_node));if(phead == NULL)exit(-1);else{phead->next = phead;phead->prev = phead;}return phead;}(3)制造新节点//制造新节点,返回新节点的地址struct db_node * make_db_node(int value){struct db_node * pnew = (struct db_node *)malloc(sizeof(struct db_node));if(pnew == NULL)printf("malloc failed!
");else{pnew->data = value;pnew->next = NULL;pnew->prev = NULL;}return pnew;}(4)插入节点//把pnew指向的节点插入到头节点的前面,也就是整个链表的末尾bo
- 2022-02-14 07:06:11下载
- 积分:1
-
简单的迷宫程序,是基本的数据结构入门程序,适合初学者学习...
简单的迷宫程序,是基本的数据结构入门程序,适合初学者学习-A simple maze procedure, is the basic data structure entry procedures
- 2023-01-06 22:25:04下载
- 积分:1
-
C/C 开发的运行于linux/unix下的程序转换到现有数据库下,基于RAD开发的程序。...
C/C 开发的运行于linux/unix下的程序转换到现有数据库下,基于RAD开发的程序。-Move Sybase C Program to Oracle Pro*C
- 2023-02-08 18:00:04下载
- 积分:1
-
binary search algorithm, to achieve a set of data for the search operation, the...
折半查找算法,实现对于一组数据的查找操作,利用折半查找法进行查找-binary search algorithm, to achieve a set of data for the search operation, the use of binary search method you
- 2023-02-02 17:15:04下载
- 积分:1
-
An introduction to Data Access Objects
An introduction to Data Access Objects
- 2022-02-22 02:49:05下载
- 积分:1
-
上海交通大学上C++课的课件..对初学C++的朋友一定要看看...其中提到了不少容易忽略的环节...
上海交通大学上C++课的课件..对初学C++的朋友一定要看看...其中提到了不少容易忽略的环节-Shanghai Jiaotong University on C++ class courseware. . For beginners in C++ to see friends. . . Many of them referred to the easily overlooked aspect
- 2023-03-31 02:25:04下载
- 积分:1
-
逆阵的常用算法!希望能给大家带来帮助!如果有更好的算法,可别忘记发给我啊! emil:wyx32893039@163.com...
逆阵的常用算法!希望能给大家带来帮助!如果有更好的算法,可别忘记发给我啊! emil:wyx32893039@163.com-inverse matrix algorithm commonly used! Give us some hope! If there is a better algorithm, it should not be forgotten that give me ah! Emil : wyx32893039@163.com
- 2022-06-21 13:05:10下载
- 积分:1
-
C#代码创建Access MDB数据库,无需Access环境.
C#代码创建Access MDB数据库,无需Access环境.-C# Code to create Access MDB database without Access environment.
- 2022-03-26 19:15:15下载
- 积分:1
-
数据结构中栈的经典算法――第二类背包问题,已经通过测试!...
数据结构中栈的经典算法――第二类背包问题,已经通过测试!-The stack data structure in the classic method- II knapsack problem, has passed the test!
- 2022-01-28 03:40:53下载
- 积分:1
-
data structure using the table to achieve an orderly set of basic function
数据结构的 用有序表实现集合的基本功能~交集 并集 插入 删除~界面美观~可操作性强-data structure using the table to achieve an orderly set of basic function-set intersection and inserted delete ~ ~ operable aesthetic interface strong
- 2022-07-22 21:07:43下载
- 积分:1