char* add_duration(char* depart, int duration) { int hour, min; sscanf(depart, "%d:%d", &hour, &min); int calc_hour = hour * 60; char* dep = add_min(calc_hour, min, duration); return dep; }
clock::clock( int days, int hours, int minutes, int seconds, int milliseconds ) { m_time = 0; add_days( days ); add_hours( hours ); add_min( minutes ); add_s( seconds ); add_ms( milliseconds ); }