If you want the names:
Code:const char* resolution_name[] = { "low", "medium", "high" }; int width, height; dm[res].get( width, height ); std::cout << resolution_name[res] << ": " << width << 'x' << height << std::endl;
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Thread: Why enum works so strange? :/Threaded View
|
Click Here to Expand Forum to Full Width |