Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
32535
#include <string> 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
Please
log in
to post a comment.
773. Sliding Puzzle
qwerty
basic caculate ii
Roots of a Quadratic Equation
Days in month database using unordered_map
C++ - Chained Methods
Segmented Sieve
Reverse a string
EN WU WU
lifff
Please log in to post a comment.