Mark44
Mentor
- 38,055
- 10,572
The two that are marked "same as jtbell's code" you can copy directly, but the other three, you need to add a few lines of code. If you look at the code for the member functions that I posted, you should be able to figure out what these three member functions need.yungman said:Do you mean I just copy the ones in bold blue above straight from Jtbell's program with no change?
Because that's one of the constructors you need to implement.yungman said:Also. For what ever reason passing c-string like ThreeVector a(1, 2, 3, "VecA") never works.
Mark44 said:Not shown are
- a constructor that initializes the name portion with a specified string, and initializes the other data members to 0
Last edited:
.