在C語言鏈表的輸出
提問人:楊紫紅發(fā)布時間:2020-11-17
編寫一個輸出鏈表的函數(shù)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);
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
點擊加載更多評論>>