#include<iostream>#include<string>#include<sstream>#include<vector>using namespace std;template<typename T>T str_To(const string& str);template<typename T>int mygetsubStr(vector<T>& vecsubstr, const string& sourcestr,const string& _delims="",const string& _stopstr="");int mai...
#include<iostream>using std::cout;using std::endl;class base;base* x; //全局指针class base{public: base(){ x=this; //this指向实际的对象,派生类产生后将指向派生类对象。 } virtual void rprint(){ cout<<"this point to base"<<endl; }};int main(){ x->rprint(); return 0;}class derive:public base{public: derive(){} ...