要启用 std::cout << oVar;,其中 oVar 具有自定义类型,你需要实现流运算符 operator<<() 的重载。

Last modified: Thursday, 30 January 2025, 4:31 PM