SyntaxFix
Write A Post
Hire A Developer
Questions
You could throw the enum value and string into an STL map. Then you could use it like so.
return myStringMap[Enum::Apple];