标签:
#include <iostream>
using namespace std;
class A
{
public:
A(){ cout << nInt << endl; };
private:
unsigned int nInt;
};
int main()
{
A a;
A * nA = new A;
if ( nA )
{
cout << "我是对象" << endl;
}
system("pause");
return 0;
}
这样a和nA有什么区别.我就不明白这样会有什么意思的啊
标签:
原文地址:http://blog.csdn.net/lrstom/article/details/44461307