-
ds3
单向链表的创建与操作
设单向链表中节点的数据域的数据类型为整型,编写函数实现以下操作:
(1)实现单向链表的创建(包括初始化)与输出操作,节点的个数及节点的数据由用户输入。
(源代码:ds3-1.c)
(2)查找给定的单链表中的第i个节点,并将其地址返回。若不存在第i个节点,则返回空地址。
(源代码:ds3-2.c)
(3)查找给定的单链表中值为n的节点,并将其地址返回。若不存在值为n的节点,则返回空地址。同时,还应通过参数传回该节点的序号。
(源代码:ds3-3.c)
(4)删除给定的单链表中的第i个节点,成功返回1,失败返回0。
(源代码:ds3-4.c)
(5)删除给定的单链表中值为n的节点,成功返回1,失败返回0。
(源代码:ds3-5.c)
(6)在给定的单链表的第i位上插入值为n的节点。
(源代码:ds3-6.c)
(7)在给定单链表的值为m的节点的前面插入一个值为n的节点。
(源代码:ds3-7.c)
(Creation and operation of a one-way linked list
Set up a one-way linked list data type node integer data fields , write a function to achieve the following:
( 1 ) achieve the creation of a one-way linked list ( including initialization ) and output operation , the number of nodes and node data entered by the user .
( Source : ds3-1.c)
( 2 ) Find a single list given in the i-th node and returns its address . Without the presence of the i-th node , returns an empty address.
( Source : ds3-2.c)
( 3 ) Find a given node in a given value of n single list , and return address . Without the presence of the value of n nodes , returns an empty address. Meanwhile, the number should be returned by the parameters of the node .
( Source : ds3-3.c)
( 4 ) Delete the given singly linked list in the i-th node , the successful return 1, else return 0 .
( Source : ds3-4.c)
( 5 ) to delete a single node in the list is given n , the successful return 1, else return 0 .
( Source : ds3-5.c)
( 6 ) )
- 2014-05-11 19:19:41下载
- 积分:1
-
NexusDB manual (chm format)
NexusDB manual (chm format)
- 2023-06-28 12:00:05下载
- 积分:1
-
仿windows优化大师界面(源码)123456
仿windows优化大师界面(源码)123456-imitation windows optimization master interface (OSS) 123456
- 2022-05-29 20:00:33下载
- 积分:1
-
本算法实现的是对两个单字符串的扫描,找出其最长公共子序列。...
本算法实现的是对两个单字符串的扫描,找出其最长公共子序列。-the algorithm to achieve the two-string scan, identify its longest public sequences.
- 2022-08-26 09:11:28下载
- 积分:1
-
This is a set of relatively complete applicable to the parties Hotel service sys...
这是一套较为完整的能适用于酒店宾馆的各方服务系统,功能强大-This is a set of relatively complete applicable to the parties Hotel service system, powerful
- 2022-02-02 08:03:05下载
- 积分:1
-
fnbdpw
包括 :定积分计算,多项式求根(牛顿法)周期性方程(追赶法)等三种算法()
- 2017-12-05 09:12:57下载
- 积分:1
-
radixsort
对首先产生20个随机数进行基数排序,是利用C++实现的(On the first 20 random numbers generated for the base sequencing is the use of C++ Realize the)
- 2007-10-16 19:11:53下载
- 积分:1
-
dataLINKES
说明: 此程序实现了数据结构中链对的建立,插入,删除,排序等操作。(data reverse establish)
- 2011-03-23 21:40:56下载
- 积分:1
-
C++ Builder程序员学习数据结构第8章
C++ Builder程序员学习数据结构第8章-Builder programmers learn C data structures Chapter 8
- 2022-11-01 07:35:03下载
- 积分:1
-
a binary tree using the trigeminal Chain example, the leaves are obtained and th...
一个二叉树的三叉链表运用实例,求出叶子的结点并输出从根结点到该叶子结点的路径!-a binary tree using the trigeminal Chain example, the leaves are obtained and the output node from the Root of leaf nodes in the path!
- 2022-02-21 08:16:56下载
- 积分:1