/
githubmirror
/
CPlusPlusThings
Обзор
Документация
Войти
/
githubmirror
/
CPlusPlusThings
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
basic_content/static/static_error_variable.cpp
23 строки
280 B
zhangxing
support bazel complie this project and format code.
30 мар 2024, 17:00
30 мар 2024, 17:00
3c8a3f2
Код
Авторство
О чём код?
// variables inside a class #include <iostream> using namespace std; class Apple { public: static int i; Apple(){ // Do nothing }; }; int main() { Apple obj1; Apple obj2; obj1.i = 2; obj2.i = 3; // prints value of i cout << obj1.i << " " << obj2.i; }