#include //for cerr and << #include //for EXIT_FAILURE #include //for abs #include "relativistic_rocket.h" using namespace std; relativistic_rocket::relativistic_rocket(double initial_length, double initial_v) : rocket(initial_length, initial_v) { if (abs(v()) >= c()) { cerr << "Velocity " << v() << " can't be >= the speed of light " << c() << ".\n"; exit(EXIT_FAILURE); } }