c++中class,struct

两者都可以用来定义类,唯一的不同就是默认权限不同

class默认是public,struct是private

posted @ 2022-04-09 16:48  纸包鱼  阅读(41)  评论(0)    收藏  举报