会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
关注微软技术,实现梦想
努力才会成就梦想,挑战才有机会成功
首页
新随笔
联系
订阅
管理
2009年11月26日
转:C++的new
摘要: C++中的new其实是一个很糊弄人的术语,它有两种不同的含义,new运算符(new operator)和new函数(operator new),值得记录一下。一 new运算符最常用的是作为运算符的new,比如:string *str = new string(“test new”);作为运算符,new和sizeof一样,是C++内置的,你不能对它做任何的改变,除了使用它。n...
阅读全文
posted @ 2009-11-26 11:10 Kevin Johnson
阅读(374)
评论(0)
推荐(0)
编辑