/
plato
/
RaceProject
Обзор
Документация
Войти
/
plato
/
RaceProject
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
lib/src/AirVehicle.cpp
13 строк
394 B
Evanivan
feat: program almost done
09 дек 2025, 22:04
09 дек 2025, 22:04
e9ce965
Код
Авторство
О чём код?
#include "AirVehicle.h" AirVehicle::AirVehicle(double s, const std::string& n) : Vehicle(s, n) {} std::string AirVehicle::getType() const { return "Air"; } double AirVehicle::calculateTime(double distance) const { double reductionPercent = getDistanceReduction(distance); double reducedDistance = distance * (1.0 - reductionPercent / 100.0); return reducedDistance / speed; }