do u mean
所在版块:
求学狮城
发贴时间:2005-10-30 15:44
用户信息
昵称:
icky
经验: 11581
等级: 15 最接近神
资产:
27657
华新币
发贴: 7923
在线: 9830.5 小时
复制本帖HTML代码
我要回复↙
相关跟贴↙
平板模式
手机浏览
下一跟贴
只看此人
本帖链接
字体:
小
中
大
高亮
:
今天贴
X
昨天贴
X
前天贴
X
"delete [] arr" deletes each cell
and
"delete arr" deletes the pointer itself
after "delete [] arr", the pointer "arr" still exists
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!
This page is intentionally left blank
相关帖子
我要回复↙
↗回到正文
why does not "g++ -Wall" give warning message when compiling the following code?
-
icky
2005-10-30 00:44
(
660 bytes , 932reads
)
delete array; not delete [] array;
-
simon
2005-10-30 11:15
(
470 bytes , 648reads
)
do u mean
-
icky
2005-10-30 15:44
(
132 bytes , 388reads
)
no la...as simon said, object vs primitive data type
-
sarah
2005-10-30 20:03
(
0 bytes , 391reads
)
。。。。。。ok...
-
simon
2005-10-31 01:04
(
0 bytes , 289reads
)
different btw 'object' and 'primitive data type'
-
simon
2005-10-30 11:16
(
0 bytes , 343reads
)
using linux/glibc? Segfault because you damaged the link list
-
hash
2005-10-30 06:28
(
1304 bytes , 650reads
)
a mistake
-
hash
2005-10-30 15:21
(
233 bytes , 411reads
)
but after
-
icky
2005-10-30 10:20
(
103 bytes , 386reads
)
The default libstdc++ operator new and delete use the libc malloc and free.
-
hash
2005-10-30 15:48
(
86 bytes , 465reads
)