废话不说,直接跟上以前的代码,写出打印函数来。
void print(struct student *head)
{
struct student *p;
printf(“\n these %d records are:\n”,n);
p = head;
if(head != NULL)
do
{
printf(“%ld %f\n”,p->num,p->score);
p = p->next;
}while(p != NULL);
}
很简单,效果跟上一篇一样,那个也是通过这个函数打印出来的,
请关注 断肠人空间
C:链表的操作(二),如何输出一个链表
原创wx63864a6559994 博主文章分类:数据结构 ©著作权
©著作权归作者所有:来自51CTO博客作者wx63864a6559994的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:老汉卖羊
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
【数据结构】链式家族的成员——循环链表与静态链表
【数据结构】第二章——线性表(8)详细介绍了循环链表与静态链表的相关内容……
数据结构 C语言 循环链表 静态链表 -
C语言构建一个链表以及操作链表
C语言构建一个链表以及操作链表
C语言 C++ 编程语言 -
【算法】输入一个链表,反转链表后,输出新链表的表头。
=
链表 单链表 算法 结点 数据结构 -
c语言:编写一个输出链表的函数print
c语言 谭浩强 编写输出链表的函数print
c语言 编写 谭浩强 -
kubeconfig默认namespace
一、引言 kubeadm 是 k8s 重要的快速部署工具,也是其原生支持的部署工具,在实现自动化部署方面具有重要的研究价值。 本文将基于 Kubernetes 1.12 版本,分析其 init 初始化集群的执行流程,希望对读者进一步理解 k8s 有所帮助!二、流程介绍
kubeadm init 执行流程分析 kubeadm k8s 初始化 加载