/
githubmirror
/
CPlusPlusThings
Обзор
Документация
Войти
/
githubmirror
/
CPlusPlusThings
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
english/basic_content/static/static_class.cpp
27 строк
362 B
xliu79
english
19 июл 2020, 05:38
19 июл 2020, 05:38
2bdeea8
Код
Авторство
О чём код?
#include<iostream> using namespace std; class Apple { int i; public: Apple() { i = 0; cout << "Inside Constructor\n"; } ~Apple() { cout << "Inside Destructor\n"; } }; int main() { int x = 0; if (x==0) { static Apple obj; } cout << "End of main\n"; }