摘要: 源程序: #include <iostream>using namespace std;class A{public: virtual void printMe() { cout<<"This is class A printing."<<endl; }} ;class B:public A{pub 阅读全文
posted @ 2022-04-10 10:50 bobo哥 阅读(44) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>using namespace std; class B;class A{private: int i;public: int set(B&); int get() { return i; } A(int x) { i = x; }}; class B 阅读全文
posted @ 2022-04-10 10:28 bobo哥 阅读(44) 评论(0) 推荐(0)