Here is the simple program for printing the week days example using Enumeration in C++.
#include<iostream> using namespace std; enum week { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday }; int main() { week today; today=Wednesday; cout<<"Day "<<today+1; return 0; }To download raw file Click Here
Day 4
Learn All in Tamil © Designed & Developed By Tutor Joes