Enumerators

Hey guys quick question would this be the correct way to declare 8 variables of an enumerated type in a vector?

1
2
enum Colors {green=0, orange, pink, purple, white};
	vector<Colors> myColors(8);
Last edited on
:p!
Last edited on
:p!
Last edited on
You realize this is a forum right? We don't monitor it 24/7...

But yes, that looks fine to me.
Topic archived. No new replies allowed.