#C++ Doctor Data Test 2
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
not sure how to do this exactly, heres my code for this part so far, seems to work fine locally but not on exercism.
heaven::Vessel heaven::Vessel::replicate(std::string str) {
heaven::Vessel copy = *this;
copy.name = str;
copy.generation++;
return copy;
}
ah i figured it out was missing the
copy.current_system = star_map::System::Sol
is there any optimal way to create copies? or is this good