#include<iostream> using std::cout; using std::endl; int main(){ cout << "http://dev-microsoft.blogspot.com/" << endl << endl; enum Day {SUN, MON, TUE, WED, THU, FRI, SAT}; cout << SUN << endl; cout << MON << endl; cout << TUE << endl; cout << WED << endl; cout << THU << endl; cout << FRI << endl; cout << SAT << endl; cout << endl; system("PAUSE"); }
![Basic usage of enum in C++ Basic usage of enum in C++](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpFmefnrkQv69iegRqZ3VcgrQcV0qzsu-K8HQCG5LRW8_pWAN_yDQU48umGE2OJhUTJ27urdWZW6cDycV_HCMcRkitkiAHux-_wXHaU6xVQ02dgRM3PIToPUUDfiyyJYYASsCUzsEIG9o/s400/testENUM.png)
Compare to Basic usage of enum class in CLR C++
No comments:
Post a Comment