文件名称:single-list-method
介绍说明--下载内容均来自于网络,请自行研究使用
此实验利用前插法创建一个单链表,利用单链表的功能动态地开辟空间存储数据,以及删除数据释放空间。首先建立带表头结点的单链表,并输入数据。接着输出单链表中所有结点的数据域值。然后输入x,y在第一个数据域值为x的结点之后插入结点y,若无结点x,则在表尾插入结点y。最后输入k,删除单链表中所有的结点k,并输出被删除结点的个数。-The experimental use of forward runs to create a single list method, using a single linked list of functions to dynamically open up space to store data, and delete data free space. First established with a single header node list, and enter data. Then the output of all nodes in a single list of data field values. Then enter the x, y data field in the first node is inserted after x node y, if no node x, then insert the end of the table node y. Finally, the input k, delete all the single linked list node k, and output is the number of nodes removed.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
单链表操作.c