11.9.cpp
来自「c入门代码大全」· C++ 代码 · 共 19 行
CPP
19 行
//编写一个输出链表的函数print
# include <stdio.h>
void print(struct student *head)
{
struct student *p ;
printf("\n Now , these %d records are :\n" , n) ;
p = head ;
if(head != NULL)
do
{
printf("%ld%5.1f\n" , p->num , p->score) ;
p = p->next ;
}while(p != NULL) ;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?