typedef enum FoodType{
	fruit = 0,
	bread,
	candy,
	numFoodTypes
}FoodType;

Keep in mind that this only works for contigues values, meaning, when fruit = 0, bread = 1, candy = 2.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

Spam Protection by WP-SpamFree