Derived *dp = new Derived; Base *bp = dp; //兩個指標都指向一個 Derived 物件//在執行時期比較兩個物件的型別 if (typeid(*bp) == typeid(*dp)) { // bp 和 dp 指向 ...
確定! 回上一頁