摘要:
#include <iostream> using namespace std; class A { private: int nVal; public: void Fun() { cout << "A::Fun" << endl; }; virtual void Do() { cout << "A 阅读全文
摘要:
#include <iostream> using namespace std; class A { public: A() { } // 在此处补充你的代码 virtual ~A() { cout << "destructor A" << endl; } }; class B :public A 阅读全文
摘要:
#include <iostream> using namespace std; class A { private: int nVal; public: void Fun() { cout << "A::Fun" << endl; }; void Do() { cout << "A::Do" << 阅读全文
摘要:
#include <iostream> using namespace std; class B { private: int nBVal; public: void Print() { cout << "nBVal=" << nBVal << endl; } void Fun() { cout < 阅读全文
摘要:
#include <iomanip> #include <iostream> #include <string> using namespace std; static int n; static int nowCase = 1; static int* sumBloodArr; static in 阅读全文
摘要:
#include <cstdlib> #include <iostream> #include <string> #include <algorithm> using namespace std; class MyString:public string { public : MyString(){ 阅读全文