討論串[問題] free 與 pointer 的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓6(6推 0噓 16→)留言22則,0人參與, 最新作者tropical72 (藍影)時間15年前 (2011/01/19 01:36), 編輯資訊
0
0
0
內容預覽:
如 love 大所說,上面這行會爆,. int *addLines = NULL; 再調用好些。. 這裡要說明 realloc 實際動作,. int *a = NULL, *b=NULL;. a = (int*)malloc(sizeof(int)*10);. b = (int*)realloc(a
(還有1078個字)

推噓2(2推 0噓 10→)留言12則,0人參與, 最新作者way111078 (wei)時間15年前 (2011/01/19 01:18), 編輯資訊
0
0
0
內容預覽:
開發平台(Platform): (Ex: VC++, GCC, Linux, ...). 各位大大好:. 想請教各位大大free的用法. 我的code:. int *addLines;. addLines = realloc(addLines, (pointCount)*sizeof(int));.
(還有73個字)
首頁
上一頁
1
下一頁
尾頁