how to use access to enum by value in c++ code example Example: enum c++ enum names {blah1, Blah2 , blah3};