STL::List的对象存储与释放
摘要:
写了一个小程序,来检查一下List中如何管理存储的对象。#include "stdafx.h"#include <list>#include <iostream>using namespace std;class MyClass{ public: int nMember; int * pMember; public: MyClass(void){cout<<"New my Class"<<endl;nMember = 0;pMember = &nMember;cout<<" p 阅读全文
posted @ 2010-10-17 22:13 c语言源码 阅读(337) 评论(0) 推荐(0) 编辑