摘要:
#include <iostream>using namespace std;class A{private: int num;public: A(int num){ this->num = num; } void printA(){ cout<<"A "<<num<<endl; }};template <class T>class demostrate{public: demostrate(T* pObj = 0){ cout<<"default constructor"&l 阅读全文