摘要: C++语言: Codee#2575201 #include <iostream>02 03 using namespace std;04 05 class Trace06 {07 static int counter;08 int objid;09 public:10 Trace()11 {12 objid = ++counter;13 cout << "constructing Trace #" << objid << endl;14 if(objid == 3)15 throw 3;16 }17 ~Trace()18 {1 阅读全文
posted @ 2012-03-09 11:00 strorehouse 阅读(192) 评论(0) 推荐(0) 编辑