enum class open_modes { input=1, output, append }; std::ostream& operator << (std::ostream& os, open_modes al) { return os << static_cast(al); } int main() { open_modes mode=open_modes::input; cout<
京公网安备 11010502049817号