CodePudding user response:
Mainly your printing function, you are using an instance, rather than reference, each call to print, will create a temporary variable, print out the results of the value of the variable is the temporary;Suggest you check the copy constructor and invoke the timing,
CodePudding user response:
How to convert the number of type string for type double figuresCodePudding user response:
Double x=stod (STR);CodePudding user response:
When you call the output function in front travels is value, belongs to the value transfer does not change the value of the object a