經安全檢測,此網站為安全網站,請放心前往原始網址!

oop - When should you use a class vs a struct in C++? - Stack Overflow

In what scenarios is it better to use a struct vs a class in C++? ... The only difference between a class and a struct in C++ is that structs have default public members and bases and classes have default private members and bases.

stackoverflow.com

網址安全性掃描由 google 提供