C++ struct和class

默认的访问权限不同

struct

默认公有public

class

默认私有private

posted @ 2022-03-06 22:22  thomas_blog  阅读(176)  评论(0)    收藏  举报