... 從資料流中讀取物件 if(auto sp=dynamic_castKShape*>(p.get(){ Sp->draw(); / /使用 Shape 物件//· } e1se{ / /糟糕:在 Shape 檔案內出現非幾何形狀的物件} }函式 ...
確定! 回上一頁