Enumerators

May 7, 2010 at 11:18pm
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 May 7, 2010 at 11:42pm
May 7, 2010 at 11:38pm
:p!
Last edited on Jun 20, 2010 at 2:43pm
May 7, 2010 at 11:39pm
:p!
Last edited on Jun 20, 2010 at 2:42pm
May 7, 2010 at 11:56pm
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.