enum in C++
The enum keyword is also used to define the variables of enum type. ``` #include <iostream> using namespace std; enum colors{red=5, black}; enum suit{heart, diamond=8, spade=3, club}; int main() { cout <<"Color:"<<red<<","<<black<<endl; // Color:5,6 cout <<"Suit:"<<heart<<","<<diamond<<","<<spade<<","<<club<<endl; // Suit:0,8,3,4 return 0; } ```