2013年8月19日

摘要: #include #include using namespace std;templateclass S{public: S() {} static T* t; static void gen() { static T p; t = &p;/* t = new T();*/ }};class A : public S { public: char carr[1024]; };A* A::t = NULL;class B : public S { public: char carr[2048]; };B* B::t = N... 阅读全文
posted @ 2013-08-19 07:06 shizuka 阅读(295) 评论(0) 推荐(0) 编辑

导航