¡@

Home 

c++ Programming Glossary: errora

C++: Print out enum value as text

http://stackoverflow.com/questions/3342726/c-print-out-enum-value-as-text

value as text If i have an enum like this enum Errors ErrorA 0 ErrorB ErrorC Then i want to print out to console Errors anError.. ErrorC Then i want to print out to console Errors anError ErrorA cout anError 0 will be printed but what i want is the text ErrorA.. cout anError 0 will be printed but what i want is the text ErrorA can i do it without using if switch And what is your solution..