I declared a enum type as this,
enum WeekEnum { Mon = 0; Tue = 1; Wed = 2; Thu = 3; Fri = 4; Sat = 5; Sun = 6; };
How can I get the item na
You can define an operator that performs the output.
std::ostream& operator<<(std::ostream& lhs, WeekEnum e) { switch(e) { case Monday: lhs << "Monday"; break; .. etc } return lhs; }