need help: error 'end' undeclared indentifier

I am getting the error report "'end' : undeclared identifier"
the code looks good to me but I know there is something wrong with it.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <iostream>	
using namespace std;

int main ()
{
	int direction=0;

		enum colors {
			red = 1,
			orange = 2,
			yellow = 3,
			green = 4,
			blue = 5,
			brown = 6,
		    };
		cout << "What is your favorite M&M color (enter number)?" << endl;
		cout << "red =1" << endl;
		cout << "orange =2" << endl;
		cout <<	"yellow =3" << endl;
		cout <<	"green =4" << endl;
		cout <<	"blue =5" << endl;
		cout <<	"brown =6" << end;

	    cin >> direction;

		switch (direction) {
			case red: 
				cout << "meh you chose red...";
				break;
			case orange:
				cout << "meh you chose orange...";
				break;
			case yellow:
				cout << "meh you chose yellow...";
				break;
			case green:
				cout << "meh you chose green....";
				break;
			case blue:
				cout << "YoU ChOsE mY FaveRoiTe CoLOr!!!! YOu ChOse bLuE!!!!";
				break;
			case brown:
				cout << "Meh you chose brown....";
				break;
		}

		system("pause");
		return 0;
}
closed account (zb0S216C)
Line 22: you've misspelt "endl".

Wazzak
lol duh.....
Topic archived. No new replies allowed.