标签:image 情况下 clu gif color col oid using return
#include <iostream> using std::cout; class A{ public: virtual void f(){cout << "A f\n";} }; class B:public A{ public: void f(){cout << "B f\n";} }; void test(A*p) { (*p).f(); } int main() { B b; test(&b); return 0; }
输出:
标签:image 情况下 clu gif color col oid using return
原文地址:https://www.cnblogs.com/buddho/p/11865209.html