I have this code:
#include <iostream>
using namespace std;
int main()
{
enum foxtrot {green, yellow, red};
foxtrot colorSelect;
cout << red << endl;
cin >> colorSelect;
cout << colorSelect << endl;
}
Line 10 gives me the result 2 as expected, but line 11 gives me a compile error: "No match for 'operator<<' in 'std::cin << colorSelect'.
I thought I was entering this right but...am I? What am I doing wrong here, I thought it was pretty straight forward.