2011-10-01ãã1ã¶æéã®è¨äºä¸è¦§
ãããªæãã®ã³ã¼ããç®ã«ãã¾ããã #include <vector> struct Base { ~Base(){} // non-virtual virtual void doSomething() = 0; }; struct Derived1 : public Base { virtual void doSomething(){ ++x; } int x; }; struct Derived2 : public Base { virtual voi</vector>â¦