lzhenf

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年3月23日

摘要: 布局new和普通New不同,相当于建立一个小堆空间 。#include <iostream>#include <string>#include <new>using namespace std;const int BUF = 512;class testing{private : string word; int len;public: testing(const string & s = "tesing",int n = 0 ) { word = s; len = n; cout <<word <<&qu 阅读全文
posted @ 2012-03-23 22:15 lzhenf 阅读(270) 评论(0) 推荐(0) 编辑