I\'m getting an error:
expression must be a modifiable lvalue at line, obj.name = ptr->name
obj.name = ptr->name
I have tried to mak