Java可以直接调用同名构造函数,仅仅起初始化的功能,并不构造新的对象,但是C++里面没有。看一下这段代码:class A {public: A() { printf("A() \n"); } A(int d) { printf("A(int) \n"); A(); } // 不能这样调... Read More
posted @ 2014-10-21 16:58 findumars Views(580) Comments(0) Diggs(0)