C++ enum sample code

enum colors{ red, green, blue};std::cout << "Red " << red << " Green " << green << " Blue " << blue << "\n"; enum is short for enumeration and in this process a list is assigned numerical values, each item in the list, one more than the item before it. If one arbitrarily assigns a value of 4 to an enum item, the next item will be 5 // Example...
Read More
Top