摘要: #include<bits/stdc++.h> using namespace std; /** * typeid 识别基类指针所指的实际对象,并进行不同的成员函数调用 * */ class B { int x; public: virtual void f() { printf(" B f\n") 阅读全文
posted @ 2021-12-28 13:30 consolexinhun 阅读(46) 评论(0) 推荐(0) 编辑