شرح enumeration in c++
#include <string>
using namespace std;
int main()
{
// enum .. enumration
// 0 1 2 3
enum colrs{ red,blue,black,white };
cout<<red<<" : "<<blue<<" : "<<black<<" : "<<white<<endl;
}
//--------------------
#include <iostream>
#include <string>
using namespace std;
int main()
{
// enum .. enumration
// 0 1 2 3
enum colrs{ red=50,blue,black=60,white };
cout<<red<<" : "<<blue<<" : "<<black<<" : "<<white<<endl;
}