摘要:
#include<iostream> using namespace std; class Base { public: int m_A; void func(){ cout<<"Base func()调用"<<endl; } protected: int m_B; private: int m_C 阅读全文
posted @ 2020-03-13 20:23
~明月几时有
阅读(196)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; class Base { public: static int m_A; static void func() { cout << "Base static func()调用" << endl; } static voi 阅读全文
posted @ 2020-03-13 20:12
~明月几时有
阅读(281)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; class Base { public: Base() { m_A = 100; } void func() { cout << "Base func()调用" << endl; } void func(int a) { 阅读全文
posted @ 2020-03-13 20:06
~明月几时有
阅读(139)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<string> using namespace std; class MyPrint { public: void operator()(string text) { cout << text << endl; } }; class MyAdd 阅读全文
posted @ 2020-03-13 19:56
~明月几时有
阅读(188)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; class Base { public: int m_A; protected: int m_B; private: int m_C; }; class Son1 :public Base { public: void 阅读全文
posted @ 2020-03-13 19:42
~明月几时有
阅读(333)
评论(0)
推荐(0)
浙公网安备 33010602011771号