Doctor Data is the first C++ exercise with two files (doctor_data.cpp and doctor_data.h). How should the files be set up so that the tests starts passing? I know I have to declare the classes and functions in the namespace inside the doctor_data.h header file.
doctor_data.h
#ifndef DOCTOR_DATA_H
#define DOCTOR_DATA_H
#include <string>
namespace star_map {
enum class System { BetaHydri, EpsilonEridani, Sol, AlphaCentauri, DeltaEridani, Omicron2Eridani };
}
namespace heaven {
class Vessel {
public:
std::string name;
int count;
star_map::System system;
heaven::Vessel replicate(std::string);
star_map::System current_system {};
int generation {0};
Vessel (std::string name = "", int count = 1, star_map::System system = star_map::System::Sol) : name(name), count(count), system(system) {};
int busters;
void make_buster();
bool shoot_buster();
};
std::string get_older_bob(heaven::Vessel, heaven::Vessel);
bool in_the_same_system(heaven::Vessel, heaven::Vessel);
}
#endif