Which of the following is not automatically generated by the compiler?
a) default constructor
b) copy constructor
c)equality operator (op==)
d) assignment operator (op=)
e) destructor
#include <iostream>
#include <string>
#include <assert.h>
using namespace std;
class A
{
};
int _tmain(int argc, _TCHAR* argv[])
{
A a; //有默认构造函数
A b(a); //有默认拷贝构造函数
A c = b; //有默认赋值操作
A * d = new A;
delete d; // 有默认析构函数
assert(a == b); //没有默认equality operator
return 0;
}