在c++中,calss与struc本质上是一样的,区别在于: 如果不加修饰符,class默认为private;而struct默认为public。 转载于:https://www.cnblogs.com/wangyangdahai/p/10277116.html