//----------------------------------------------------------- // // enum.cpp // // A program to enumeration constants // // Simon Parsons // // 8th February 2010 // //----------------------------------------------------------- // // Libraries etc. #include using namespace std; //----------------------------------------------------------- // // main // int main() { // Watch for the duplicated value. enum answer { yes, no, maybe = -1 , impossible} my_answer; cout << "yes is " << yes << endl; cout << "no is " << no << endl; cout << "maybe is " << maybe << endl; cout << "impossible is " << impossible << endl; cout <