Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
data locality - fast example
Exempel 1
Lowest common ancestor
pangram
volatile thread-safe object
Counting top students
12hours Clock c++
inorder traversal
so
Test 12(2021)
Please log in to post a comment.