討論串[問題] 問一串連結構的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 6→)留言7則,0人參與, 最新作者HPMC (如果)時間16年前 (2009/10/10 15:43), 編輯資訊
0
0
0
內容預覽:
SS=(node*)malloc(sizeof(node));. ptr=SS;. run了一變確實無法輸出ch1;. 但改成以上就可以了.... 請問上面的SS跟ptr是什麼關希呢??. 為什麼SS沒經過new->number=ch2;卻可以輸出ch2;. 卻又保有ch1...... 小弟這邊觀念

推噓2(2推 0噓 7→)留言9則,0人參與, 最新作者HPMC (如果)時間16年前 (2009/10/10 14:06), 編輯資訊
0
0
0
內容預覽:
typedef struct list. {. int number;. struct list *next;. }node;. void main(void). {. node *ptr,*new;. char ch1,ch2;. ptr=(node*)malloc(sizeof(node));.
(還有209個字)
首頁
上一頁
1
下一頁
尾頁