摘要: #include <iostream> using namespace std; class A { private: int nVal; public: void Fun() { cout << "A::Fun" << endl; }; virtual void Do() { cout << "A 阅读全文
posted @ 2022-02-22 11:05 icefield817 阅读(52) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; class A { public: A() { } // 在此处补充你的代码 virtual ~A() { cout << "destructor A" << endl; } }; class B :public A 阅读全文
posted @ 2022-02-22 10:57 icefield817 阅读(72) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; class A { private: int nVal; public: void Fun() { cout << "A::Fun" << endl; }; void Do() { cout << "A::Do" << 阅读全文
posted @ 2022-02-22 10:51 icefield817 阅读(37) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; class B { private: int nBVal; public: void Print() { cout << "nBVal=" << nBVal << endl; } void Fun() { cout < 阅读全文
posted @ 2022-02-22 10:39 icefield817 阅读(46) 评论(0) 推荐(0) 编辑
摘要: #include <iomanip> #include <iostream> #include <string> using namespace std; static int n; static int nowCase = 1; static int* sumBloodArr; static in 阅读全文
posted @ 2022-02-22 10:08 icefield817 阅读(77) 评论(0) 推荐(0) 编辑
摘要: #include <cstdlib> #include <iostream> #include <string> #include <algorithm> using namespace std; class MyString:public string { public : MyString(){ 阅读全文
posted @ 2022-02-22 10:07 icefield817 阅读(74) 评论(0) 推荐(0) 编辑