struct和class的区别

struct 的成员默认是公有的,而类的成员默认是私有的。

posted @ 2017-04-24 15:46  倾耳听  阅读(104)  评论(0编辑  收藏  举报