Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
new delete malloc free
//g++ 5.4.0 #include <iostream> using namespace std; class A{ int x, y; public: static int total; A(){ total++; cout << "Hi" << endl; } ~A(){ cout << "Bye" << endl; } }; int A::total = 0; int main() { A a; A b; cout << a.total << endl; }
run
|
edit
|
history
|
help
0
32535
Reverse a string
string-Orderly words
volatile thread-safe object
begin_end.cpp
Gauss Jordan Ida
grid
Estocasticos V1.1
Dictionary
queueArray