#include <iostream>

enum trafficlights {red,yellow,green};

int main(int argc, char* argv[])
{
    trafficlights light = red;
    
    std::cout << light << " " << green << std::endl;
    if (light ==2) { //Not exactly type safe!
        std::cout << "Light is green" << std::endl;
    }
    return 0;
}