/
githubmirror
/
CPlusPlusThings
Обзор
Документация
Войти
/
githubmirror
/
CPlusPlusThings
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
learn_class/modern_cpp_30/reference/shape.h
41 строка
633 B
zhangxing
support bazel complie this project and format code.
30 мар 2024, 17:00
30 мар 2024, 17:00
3c8a3f2
Код
Авторство
О чём код?
#pragma once #include <iostream> using namespace std; class shape { public: shape() { cout << "shape" << endl; } ~shape() { cout << "~shape" << endl; } }; class circle : public shape { public: circle() { cout << "circle" << endl; } ~circle() { cout << "~circle" << endl; } }; class triangle : public shape { public: triangle() { cout << "triangle" << endl; } ~triangle() { cout << "~triangle" << endl; } }; class rectangle : public shape { public: rectangle() { cout << "rectangle" << endl; } ~rectangle() { cout << "~rectangle" << endl; } };