在C语言链表的输出
提问人:杨紫红发布时间:2020-11-17
编写一个输出链表的函数print。
void print( struct student *head )
{ struct student *p;
printf(“\nNow, 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);
void print( struct student *head )
{ struct student *p;
printf(“\nNow, 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);
继续查找其他问题的答案?
相关视频回答
回复(0)
点击加载更多评论>>