類裏的一些特性

注意的幾點 1.可以在類裏定義類型別名,受訪問級別約束。 class Screen { public: typedef string::size_type pos; }; class Screen { public: using pos = string::size_type; }; 2.成員函數聲明爲inline時,聲明和定義裏有一個標記爲i
相關文章
相關標籤/搜索