c++的 struct和class

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

原文地址:https://www.cnblogs.com/lingqingyu/p/12668627.html