c++的 struct和class

在c++中class和struct用法是相同的,只有一个区别成员的默认属性,struct是public,class是private。

posted @ 2020-04-09 18:10  凌青语  阅读(98)  评论(0)    收藏  举报