Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C++ virtual dispose
#include <iostream> using namespace std; struct parent { virtual void predispose() { cout << "parent"; } ~parent() { predispose(); } }; struct child : parent { void predispose() override { cout << "child"; } }; int main() { auto* a = new child(); delete a; }
run
|
edit
|
history
|
help
0
PascalTriangle
3SUM problem
mua
Beadandó
Vector impl
avx2 optimized pcg32 random number generator
Hi
NonparaSign
Lekhana.R 123454766
st_match