ITPub博客

首页 > 应用开发 > IT综合 > pointer 使用时注意事项

pointer 使用时注意事项

原创 IT综合 作者:101OIO 时间:2007-12-14 11:04:46 0 删除 编辑

使用pointer前一定要先确认其值是否为0

if (!p)

特例: delete 的时候不需要

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/55968/viewspace-993540/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Pass by reference
请登录后发表评论 登录
全部评论
  • 博文量
    47
  • 访问量
    81416