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't directly, enum in C++ are not like Java enums.
enum
The usual approach is to create a std::map.
std::map
std::map m; m[Mon] = "Monday"; //... m[Sun] = "Sunday";