摘要:
#include <iostream>#include <stdlib.h> using namespace std; class B{public: B() { cout << "B()" << endl; } ~B() { cout << "~B()" << endl; } int m_b1; 阅读全文
摘要:
#include <iostream>#include <stdlib.h> using namespace std; class A{public: int age; void test() { cout << "A()" << endl; }}; class B : public A{publi 阅读全文
摘要:
#include <iostream>#include <stdlib.h>#include <string>using namespace std; char GetChars(string &str, const int nStrIndex){ if (nStrIndex > (int)str. 阅读全文