C++11新特性(8)- 类内初始化

重复的初始化代码 考察下面的代码: enum LineStyle{    lsSolid,    lsDash,    lsDot,     }; class Rect { public:    Rect()        :left{0}, top{0}, right{0}, bottom{}        ,style{lsSolid}    {         }    Rect(int l
相关文章
相关标签/搜索