假設有一個class 如下:. class Foo { public: Foo(int i) : i_(i) {}. private: int i_; };. constructor 有一個參數,我們正常的宣告它. Foo f(0);.
確定! 回上一頁