-
栈、队列 模拟停车场管理【数据结构】
以栈模拟停车场,以队列模拟停车场外的便道,按照从终端读入的输入数据序列进行模拟管理。每一组数据包括三个数据项:汽车到达或离去的信息、汽车牌照号码以及到达或离去的时刻。对每一组输入数据进行操作后的输出信息为:若是汽车到达,则输出汽车在停车场内或便道上停车位置;若是汽车离去,则输出汽车在停车场内停留的时间和应缴纳的费用(在便道上停留不收费)。栈以顺序结构实现,队列以链表结构实现。
- 2022-01-25 21:29:05下载
- 积分:1
-
exceltodb_fcn函数实现的功能是从Excel spreadshe读取数据…
函数ExceltoDB_Fcn实现的功能是从excel表格读取数据到数据库DB中。-Function ExceltoDB_Fcn realize the function is to read data from excel spreadsheet to the database in the DB.
- 2022-03-17 18:53:57下载
- 积分:1
-
数据结构——链表(双向循环链表)
双向循环链表节点:数据域+指针域指针域:一个指针指向前一个同类型节点,另一个指针指向后一个同类型节点(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 good source of data link procedures
- 2022-04-18 16:55:21下载
- 积分:1
-
vc下的ADO数据库编程
vc下的ADO数据库编程-vc the ADO database programming
- 2023-04-30 20:00:03下载
- 积分:1
-
established procedures for the use of binary tree, the source of intron way, the...
建立、使用二叉树的程序,内含源程,是数据结构中必学知识。-established procedures for the use of binary tree, the source of intron way, the data structure is certainly knowledge.
- 2023-06-21 19:55:03下载
- 积分:1
-
用C语言写的文件合并,可以合并两个二进制文件
用C语言写的文件合并,可以合并两个二进制文件-Using C language to write the file merger can merge two binary files
- 2022-04-08 05:46:21下载
- 积分:1
-
如何将ABCDEFG按照指定的顺序,创建二叉树,
如何将ABCDEFG按照指定的顺序,创建二叉树,-How to ABCDEFG in accordance with the order specified to create binary tree,
- 2022-04-27 05:03:53下载
- 积分:1
-
双向约瑟夫问题,利用双向链表实现双向进行的约瑟夫问题
双向约瑟夫问题,利用双向链表实现双向进行的约瑟夫问题-Two-way Joseph problems, using two-way two-way linked to the issue of Joseph
- 2023-04-28 16:05:03下载
- 积分:1
-
本程序实现了二叉排序树的建立以及查找,插入和删除的功能.
本程序实现了二叉排序树的建立以及查找,插入和删除的功能.-realized by the two forks of trees to establish order and search, insert and delete functions.
- 2022-03-22 18:29:45下载
- 积分:1