-
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
-
vcGBGY
C++如何连接数据库,对于初学者来说很重要。简单易懂。免费下载(C++ How to connect to the database, it is important for beginners. Easy to understand. Free download)
- 2010-07-04 16:56:26下载
- 积分:1
-
GEP_genericalgorithm
很好的基因表达式编程(GEP)的入门小程序,C
语言写的,欢迎下载。(gep vc code)
- 2021-04-16 08:48:54下载
- 积分:1
-
c8051f020 pwm调速
基于c8051f 的pwm输出控制 直流调速程序
- 2023-08-31 04:20:03下载
- 积分:1
-
Cycle of Destruction VIP远程协助V1.0
rnlcksgekrmfjgwlaksgksroskdaktekgg
- 2019-04-05 03:41:19下载
- 积分:1
-
SX7789V驱动TFT彩屏的程序
该资料包括SX7789V的datasheet资料,以及SX7789v芯片驱动TFT彩屏的程序,其中包括彩屏显示数字、符号、以及汉字的相关实现方法
- 2022-09-07 06:20:03下载
- 积分:1
-
PID学习软件(C#实现PID)
说明: 实现PID自动控制,用C#实现无负压供电(Realization of PID automatic control and non-negative voltage power supply with C#)
- 2020-06-17 23:00:02下载
- 积分:1
-
在面向对象程序设计和C++ Builder的使用手册。
Manual on OOP and usage of C++ Builder.
- 2022-02-02 04:26:26下载
- 积分:1
-
About-SparseLab
稀疏表示是压缩感知的基础条件,一篇关于稀疏表示的详细介绍,值得学习。(Sparse representation is a basic condition for compressed sensing, detailed article on sparse representation, it is worth learning.)
- 2014-11-01 12:23:56下载
- 积分:1
-
Life_Game
说明: 这个是八皇后的代码,用VC写的,使用了c++数据结构,用了递归回溯(eightQueen)
- 2009-08-05 00:28:02下载
- 积分:1