Featured image of post C++ 打印enum class枚举类

C++ 打印enum class枚举类

在 C++11中,由于枚举类(enum class)无法通过 std::cout 标准流打印,为了解决这个问题,提供了三种解决方案。

Featured image of post C++ POD type

C++ POD type

POD is an acronym for **Plain Old Data** in C++, referring to a data type that can be copied and transferred via simple memory copy