please I have a problem in copying a dynamically allocated object in c++
It's always change the original value of the object.
for example: Person * P1=new Person(string name,int age); P2=P1;
then I want to make P2 a separate object to change something in it without affecting P1 .
Any help here

New Topic/Question
Reply




MultiQuote



|