新手求助!三个题,求大神帮忙

qq_44819235 2019-03-22 09:15:26
编写下列函数 链表实验题目。链表结点的结构定义为。:struct node{int value; struct node*next;} struct node *add_to_list(struct node *head, int n) //向链表首部插入一个值为n的结点
struct node *build_list() //建立链表,调用函数struct node *add_to_list(struct node *head, int n)
struct node *search_list(struct node *head, int n) //搜索链表
struct node *delete_from_list(struct node *head, int n) //删除链表中值为n的结点,并释放该结点
void print_list(struct node *head) //打印链表 有序链表 编写下列函数:
struct node *insert(struct node *head, int n) //向链表首部插入一个值为n的结点,使链表的结点值从小到大有序
struct node *build_list() //建立链表,调用函数struct node *insert(struct node *head, int n)
struct node *search_list(struct node *head, int n) //搜索链表
struct node *delete_from_list(struct node *head, int n) //删除链表中值为n的结点,并释放该结点
void print_list(struct node *head) //打印链表 编写下列函数(指向指针的指针 编写下列函数:
void add_to_list(struct node **head, int n); //向链表首部插入一个值为n的结点
struct node *build_list(); //建立链表,调用函数add_to_list(struct node **head, int n)
struct node *search_list(struct node *head, int n); //搜索链表
void delete_from_list(struct node **head, int n); //删除链表中值为n的结点,并释放该结点
void print_list(struct node *head); //打印链表
...全文
42 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

69,371

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧