摘要: 先贴上代码~:#include <iostream>using namespace std;class A{public: A() { i=1; } A(int t) { i=t; A(); } void print() { cout<<i<<endl; }private: int i;};int main(){ A a; a.print(); A b(2); b.print();} 猜猜输出什么? 如果你觉得是1 1的话,恭喜你,继续看下去吧。 ... 阅读全文
posted @ 2013-03-30 22:37 SF-_- 阅读(204) 评论(0) 推荐(0) 编辑