struct wheel
{
wheel *copy;
wheel()
{
// variables assignment
copy = (wheel *)malloc(sizeof(wheel));
*copy = *this;
}
// variables...
};
Is this a reasonable code? Will it behavior nice for my purpose of having a struct's copy that way?