#include using namespace std; //Just like structures and classes, enums can be declared globally enum Months { JAN = 1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC}; // Here, JAN will take the value 1. Every consequent month will be incremented by 1 from the previous month. //So, FEB = 2, MAR = 3, ... int main() { int num; cout<<"Enter the month of the year: "; cin>>num; Months month = (Months) num; // we perform a C-Style cast to turn an int into a Month //We can use Months as a type in a switch statement, and all the enumerated constants can be used as case labels, // since they are essentially integer constants switch(month) { case MAY: cout<<"You entered May"; break; case JUL: cout<<"You entered July"; break; case JUN: cout<<"You entered June"; break; case JAN: case FEB: case MAR: case APR: case AUG: case SEP: case OCT: case NOV: case DEC: cout<<"You entered a month other than May, June or July"; break; default: cout<<"Invalid month"; } cout<