摘要: 代码示范: #include<iostream> using namespace std; class A { public: void foo() { cout << "A()" << endl; } }; class B :public A { public: void foo() { cout 阅读全文
posted @ 2020-07-06 16:58 sunshine_gzw 阅读(117) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; class Book { public: void getContent() { cout << "从前有座山,山上有座庙,庙里有个小和尚,小和尚在听老和尚讲故事,从前有座山..." << endl; } }; clas 阅读全文
posted @ 2020-07-06 16:19 sunshine_gzw 阅读(117) 评论(0) 推荐(0)