Hi Guys,
I have a structure and for this i want to create a copy constructor.
For other data members it is easy to copy by assignment. But for dataPtr i want deep copy to occur.Code:struct my_Export exportData
{
int a;
char b[10];
short c;
//there are lots more variable all of int,char data types;
exportData *dataPtr;
};