标签:style io color os 使用 sp for strong on
#include <iostream> class Base{ public: Base(){ } }; class Derive:public Base{ public: Derive(int a,int b){ } }; int main(){ Derive c(1,2); return 0; }
#include <iostream> class Base{ public: Base(int a){ } }; class Derive:public Base{ public: Derive(int a,int b){ } }; int main(){ Derive c(1,2); return 0; }
#include <iostream> class Base{ public: Base(int a){ } }; class Derive:public Base{ public: Derive(int a,int b):Base(a){ } }; int main(){ Derive c(1,2); return 0; }
#include <iostream> class Base{ public: Base(int a){ } }; class Derive:public Base{ public: Derive(int a){ } }; int main(){ Derive c(1); return 0; }
#include <iostream> class Base{ public: Base(int a){ this->a = a; } Base(){ } public: int a; }; class Derive:public Base{ public: Derive(int a){ } }; int main(){ Derive c(1); std::cout << c.a << std::endl; return 0; }
标签:style io color os 使用 sp for strong on
原文地址:http://blog.csdn.net/hezijian22/article/details/41599061