#include using namespace std; enum ColorT {NO_COLOR, RED, GREEN, BLUE}; int main() { ColorT front, back; back = RED; // this will fail // front = back++; front = static_cast (back + 1); cout << "Front is " << front << endl; if (front < back) { cout << "Front is smaller " << endl; } else { cout << "Back is smaller" << endl; } // This next bit will throw a fit. /* cout << "Enter a color : "; cin >> front; */ return 0; }