/
Puzzman
/
basic_programming
Обзор
Документация
Войти
/
Puzzman
/
basic_programming
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
course_project_2/Lib/Air/Eagle/Eagle.cpp
18 строк
418 B
Puzzanis
algo homework 1-2 added
28 сен 2024, 10:23
28 сен 2024, 10:23
2108435
Код
Авторство
О чём код?
#include "Eagle.h" float Eagle::movement(const int& distance) { float res_distance = distance * 0.94; float res_time{ 0.0 }; res_time = res_distance / speed_; last_race_ = res_time; return res_time; } Eagle::Eagle() { name_ = "���" ; int speed_= 8 ; } std::string& Eagle::get_name() { return name_; } int Eagle::get_type() const { return type_; }; float Eagle::get_last_race() const { return last_race_; };