/
rgd045
/
cpp-oop-basics
Обзор
Документация
Войти
/
rgd045
/
cpp-oop-basics
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
projects/spells/main.cpp
20 строк
458 B
OMP Education
Add modules
28 июн 2024, 01:09
28 июн 2024, 01:09
0ef3df8
Код
Авторство
О чём код?
// SPDX-FileCopyrightText: 2023 Open Mobile Platform LLC <edu@omp.ru> // SPDX-License-Identifier: BSD-3-Clause #include <iostream> #include "spell.h" int main() { //Spell empty {}; // приведет к ошибке Spell light("Magic Light"); Spell heal("Healing Hands", 20, 0.5); Spell fire("Fireball", 40, 0.2, 50); Spell missiles("Arcane Missiles", 30, 0.2, 20, 40); light.cast(); missiles.cast("goblin"); return 0; }