The below is also from a tutorial-the tutorial never says what its supposed to do but I would assume its supposed to cout something, except it just runs and does absolutely nothing and quits
Code:#include <iostream> void main() { enum color {RED, GREEN, BLUE}; color myColor = RED; if (myColor == RED) { cout << "hot" << endl; } if (myColor == BLUE) { cout << "cold" << endl; } if (myColor == GREEN) { cout << "Is not easy being" << endl; } }