搜索资源列表
code
- 建立一个空的单链表 建立一个空的链式队列-Singly linked list creates an empty creates an empty chain queue
shujujiegou
- 1.实现顺序表的基本操作,包括顺序表的初始化、第i个元素前插入一个新的元素、删除第i个元素、查找某元素、顺序表的销毁。2.实现单链表、循环链表、双向链表的所有基本操作 3.定义顺序栈类型,实现栈的所有基本操作。定义链栈类型,实现栈的所有基本操作。应用栈实现数制的转换。4.定义顺序队列类型,实现栈的所有基本操作。定义链队列类型,实现栈的所有基本操作。将字符串转换为整形。5.定义二叉链表类型,建立二叉树。先序、中序、后序、层次遍历二叉树,并输出遍历结果。-1. Achieve the basic o
1
- 输入数据(设为整型)建立单链表,并求相邻两节点data值之和为最大的第一节点。 - The input data (as an integer) build singly linked list, and two adjacent nodes are sum of the data values for the maximum of the first node. The input data (as an integer) build singly linked list, and t
Establish-single-table-and-sort
- 问题:建立单链表,并对单链表中的数据进行排序。方法:先建立单链表,再利用改良的冒泡法对单链表进行排序,并打印输出。-Issues: the establishment of a single linked list, sort and data in a single linked list. Methods: First, create a single linked list, improved reuse bubbling single linked list, sort, and pri
Line
- 1、定义一个建立一元多项式的函数; 2、定义能对单链表按指数排序的函数; 3、定义一元多项式加法和减法函数; 4、定义显示一元多项式的函数; 5、编写主程序调用上面的函数实现一元多项式的加减。 -1, the definition of an established one yuan polynomial function 2, the definition of a single linked list sorted exponential function 3, de
DynamicList1
- 用指针处理链表 1.如何用函数创建动态链表 2.建立简单动态单链表 3.输出单链表 4.删除链表中的一个节点 5.对链表的插入操作-practise Dynamic list
4
- LinkList 单链表用头插入法建立带头结点的单链表 按值查找结点删除指定值的结点-LinkList single linked list with head node insert established to take the lead in a single linked list nodes by value Find the node to delete the specified value
1
- 将两个一元n次多项式相加,并输出相加后的新的一元n次多项式 (1) 从input.txt文件读入一元多项式的系数和指数,用尾插法建立一元多项式的链 表。 (2) 以输入系数0为结束标志。 (3) 并约定建立多项式链表时,总是按指数从小到大的顺序排列。 (4) 要求借鉴第一章课件中给出的编程思路,一元多项式链表采用带头结点的单链表 实现。-The two one yuan polynomial of degree n, and outputs the added new o
biancheng
- (1)编写一个程序实现如下功能:有4名学生,每个学生信息包含学号、姓名、数学成绩、英语成绩、C语言成绩和三门课程的总分,并对数据进行输入和输出(程序以文件名sy8_7.c存盘)。 (2) 编写一个程序实现如下功能:定义一个点的结构数据类型,实现下列功能: ①为点输入坐标值。 ②求两个点中点坐标。 ③求两点间距离。 (程序以文件名sy8_8.c存盘 (3)编写一个程序实现如下功能:建立一个单链表,每个结点数据要有职工号、工资。用一个creat函数来建立链表,用list函数输
LinkList
- 单链表实现的简单,实现学生信息的简单建立、插入、删除和查找等。-Single linked list to achieve a simple, easy to achieve student information to establish, insert, delete and search.
a-list-of-simple
- 建立一个有三个结点的简单链表简单程序,可以成功-Create a simple linked list of nodes of the three simple procedure can be successfully
linklist
- 根据线性表的抽象数据类型的定义,选择下面任一种链式结构实现线性表, 并完成线性表的基本功能。 线性表存储结构(五选一): 1、 带头结点的单链表 2、 不带头结点的单链表 3、 循环链表 4、 双链表 5、 静态链表 线性表的基本功能: 1、构造:使用头插法、尾插法两种方法 2、插入:要求建立的链表按照关键字从小到大有序 3、删除 4、查找 5、获取链表长度 6、销毁 7、其他:可自行定义 编写测试main()函数测试线性表的正确性-According to the linear form of
xianxingbiao
- 对线性链表存储结构上的操作及应用的实现,采用表尾挂入法建立一个以LA为头指针的单链表 -The operation and application of linear linked list storage structure of the tail, hang into the method to establish LA as a pointer to the head of a linked list
FUJIAN3
- (1)输入字符序列,建立二叉链表。 (2)遍历二叉树输出。 (3)请设计一个算法,要求该算法把二叉树的叶子结点按从左到右的顺序连成一个单链表,表头指针为head。 二叉树按二叉链表方式存储,链接时用叶子结点的右指针域来存放单链表指针。请遍历该链表输出所有叶子结点,然后再先序遍历二叉树输出所有叶子结点,并对比两个输出结果,看是否相同。 (4)试写一算法判断某二叉树是否是完全二叉树。 (5)试写一算法判断某二叉树是否是二叉排序树。 (6)在主函数中设计一个简单的菜单,分别调试上
linked-list
- 从键盘依次输入10个整数(彼此以若干空格隔开),在内存中建立一个单链表。然后完成以下操作: ① 查找:输入一个欲查找的整数,找到则显示第一个相匹配的整数在单链表中所处的位置,若不存在,则显示“Not Found”。 ② 删除:输入一个欲删除的整数e,若存在则在单链表中删除第一个值为e的元素。 ③ 插入:输入一个欲插入位置i和欲插入元素e,将e插入到第i个整数之前(注意i的合法性)。-Single linked list to create, delete, search, inser
data-structure
- 数据结构基本算法:包括单链表操作、二叉树建立及遍历、基本的排序-The basic data structure algorithms: including single chain operations, binary tree traversal establish and basic ordering
erchashu
- (1)输入字符序列,建立二叉链表。 (2)遍历二叉树输出。 (3)请设计一个算法,要求该算法把二叉树的叶子结点按从左到右的顺序连成一个单链表,表头指针为head。 二叉树按二叉链表方式存储,链接时用叶子结点的右指针域来存放单链表指针。请遍历该链表输出所有叶子结点,然后再先序遍历二叉树输出所有叶子结点,并对比两个输出结果,看是否相同。 (4)试写一算法判断某二叉树是否是完全二叉树。 (5)试写一算法判断某二叉树是否是二叉排序树。 (6)在主函数中设计一个简单的菜单,分别调试上
Linked-List
- 一个简单的数据结构例子,用于自动建立一个单链表-A simple example of the data structure used to automatically create a single list
addbook
- 用VC++6以及VC++2010 编译通过的控制台学生通讯录管理系统,利用结构体,指针,单链表,文件读取等C++的知识,功能有建立通讯录,添加,修改,插入,查询,删除,保存等功能其中数据库保存功能自动实现-VC++6 communication with the VC++2010 console students and compile the book management system, using the structure, pointers, linked list, read the
shangji1
- 数据结构上机题。题目是:输入数据(设为整型)建立单链表,并求相邻两节点data值之和为最大的第一节点。-Data structure machine problems. Entitled: input data (to an integer) to establish a single list, and the two nodes adjacent data values and seeking the largest node.