Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
345325
struct baseA { std::string junk; //virtual ~baseA() {} // decomment to avoid crash }; struct baseB { int junk; //virtual ~baseB() {} // decomment to avoid crash }; struct child : public baseA, public baseB { }; int main() { baseB* instance = new child{}; delete instance; }
run
|
edit
|
history
|
help
0
quickselect
Hello world!
2720
325324
Boggle Game
list
w1
BadCastAllExcept
a ko z and z ko n string printing
Scope guarding