c++ Copy constructors and destructors
问题 I am learning constructors and Destructors in c++; Help me grasp my mistakes even if they are silly... HERE is a code I have written to perform addition using classes in c++; This creates two summands of datatype num and employs the constructor sum() to perform sum of the two numbers; However when everything was goin' alright, I stumbled upon creating a copy constructor for num , (Although not necessary but still for practice)... without the dynamic object of the class sum it is not possible