2009年11月26日
摘要: 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) 编辑