Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

資料結構的問題~

0 views
Skip to first unread message

深海

unread,
Dec 16, 1999, 3:00:00 AM12/16/99
to
※ 引述《new852...@bbs.mgt.ncu.edu.tw (我想(b))》之銘言:
> 目前我用bcb寫一個鏈結串列的程式~如下是一個插入的工作;
> typedef struct node
> {
> int data;
> struct node *link;
> }node;
> typedef node *list;
> void insert(int x,list)
> {
> list *p,*q,*nd,**list;
> nd=(*list)calloc(1,sizeof(list)); =>這一行有問題,可是我不知道它的語法是什
當然錯啦~應該是 nd=(list)malloc(> nd->data=x;
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: u860128.YI.ab.nthu.edu.tw

0 new messages