VC6.0编译器的缺陷

来源:互联网 发布:网络对外汉语教学 编辑:程序博客网 时间:2024/05/12 21:47

 

#include <iostream>

using namespace std;

class test
{
public:
 test(void) { cout<<"Constructor"<<endl; }
 ~test(void) { cout<<"Desconstructor"<<endl; }
};
test oTest;
int main()
{
}

执行结果为:

在VC6.0中为----

Constructor

在.NET中结果为----

Constructor

Desconstructor

原创粉丝点击