C++ struct 和 class的区别

在C++中,class这个关键词彷佛是多余的,由于他和struct关键字是如出一辙的,他们两只有一个不一样点:class默认是private的,而struct默认是public的。