我来我网
https://5come5.cn
 
您尚未 登录  注册 | 菠菜 | 软件站 | 音乐站 | 邮箱1 | 邮箱2 | 风格选择 | 更多 » 
 

本页主题: 求救(十万火急) 显示签名 | 打印 | 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题

曾伟



性别: 帅哥 状态: 该用户目前不在线
等级: 希望之光
发贴: 1924
威望: 0
浮云: 1116
在线等级:
注册时间: 2005-10-06
最后登陆: 2009-05-14

5come5帮你背单词 [ underwear /'Λndəw/ə/ n. 内衣,巾身衣 ]


求救(十万火急)

#include<iostream.h>
class test{
public:
   int num;
public:

   test(int n){
    num=n;
    cout<<"initialing"<<num<<endl;
   }
   ~test(){
    cout<<"destorying"<<num<<endl;
   }
   void print(){
    cout<<num<<endl;
   }
};
void main(){
test A(1);
A=3;
A.print();
A=test(5);
A.print();
}
输出结果是什么?
怎么解释呢?
谢谢先
顶端 Posted: 2006-07-03 21:26 | [楼 主]
a5ka8ich



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 625
威望: 0
浮云: 1160
在线等级:
注册时间: 2006-06-13
最后登陆: 2009-08-22

5come5帮你背单词 [ dwarf /dwo:f/ n. 矮子,矮小的动物;a. 矮小的 ]


厉害啊
顶端 Posted: 2006-07-03 21:45 | [1 楼]
我来我网·5come5 Forum » 学业有成

Total 0.009371(s) query 6, Time now is:09-16 14:20, Gzip enabled
Powered by PHPWind v5.3, Localized by 5come5 Tech Team, 黔ICP备16009856号