#include #include using namespace std; struct Base { int v1; // private: //error! int v3; public: //显示声明public int v2; virtual void print(){ printf("%s\n","Base"); }; Base(){cout<<"Base construct"<print(); delete b; return 0; }