摘要: //分析以下程序的执行结果#include<iostream.h>#include<conio.h>class Sample{ int x; public: Sample(int a) { x=a; cout<<"constructing object:x="<<x<<endl; }}; void func(int n) { static Sample obj(n);}int main(){ func(1); func(10... 阅读全文
posted @ 2011-04-03 22:26 瓜蛋 阅读(528) 评论(1) 推荐(0) 编辑