登录
首页 » C/C++ » xian2

xian2

于 2019-04-18 发布
0 82
下载积分: 1 下载次数: 1

代码说明:

说明:  通过键盘创建有若干个元素(可以是整型数值)的单链表,实现对单链表的初始化,对已建立的顺序表插入操作、删除操作、查找操作、遍历输出单链表。 要求各个操作均以函数的形式实现,并且在主函数中调用各个函数实现以下操作: ( 1 )键盘输入单链表 x 、 x 、 x 、 x 、 x 、 x ,并输出显示,其中 x 为任意整数。 ( 2 )在单链表的第 4 个位置插入 67 ,并输出单链表中的各元素值。 ( 3 )删除单链表中的第 2 个数据元素,并输出单链表中的各元素值。 ( 4 )查找单链表中的第 5 个元素并输出该元素的值。(A single linked list with several elements (which can be integer values) is created by keyboard to initialize the single linked list, insert operation, delete operation, search operation and traverse the output single linked list. Each operation is required to be implemented in the form of a function, and each function is called in the main function to implement the following operations: (1) Keyboard input single linked list x, x, x, x, x, x, and output display, where x is an arbitrary integer. (2) Insert 67 at the fourth position of the single-linked list and output the values of each element in the single-linked list. (3) Delete the second data element in the single-linked list and output the values of each element in the single-linked list. (4) Find the fifth element in the single list and output its value.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104269会员总数
  • 31今日下载