Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
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
Please
log in
to post a comment.
shuffle_example
CPP - Pointers - Ex.3
pac update
ThreadPool
ssss
Ballin primality test
Bez królików
Following order Indegree
Identifying polimorphic types without using RTTI or type mappings
project euler problem - 3
Please log in to post a comment.