討論串[問題] free 與 pointer 的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
如 love 大所說,上面這行會爆,. int *addLines = NULL; 再調用好些。. 這裡要說明 realloc 實際動作,. int *a = NULL, *b=NULL;. a = (int*)malloc(sizeof(int)*10);. b = (int*)realloc(a
(還有1078個字)
內容預覽:
開發平台(Platform): (Ex: VC++, GCC, Linux, ...). 各位大大好:. 想請教各位大大free的用法. 我的code:. int *addLines;. addLines = realloc(addLines, (pointCount)*sizeof(int));.
(還有73個字)
首頁
上一頁
1
下一頁
尾頁