位置:首頁(yè) > 軟件操作教程 > 編程開發(fā) > C語(yǔ)言 > 問題詳情

在C語(yǔ)言鏈表的輸出

提問人:楊紫紅發(fā)布時(shí)間:2020-11-17
編寫一個(gè)輸出鏈表的函數(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);

繼續(xù)查找其他問題的答案?

相關(guān)視頻回答
回復(fù)(0)
返回頂部