I have an enum type with a last item ‘num_of_types’. (that is, it will be 15, in example)
I’like to have a static array_of_types[num_of_types], to easily count the number of each type I create.
My idea is to have: array_of_types[the_type]++;
But, I have no idea to declare and initialize this static array?
Is this what you want?
After you declared that array you can use it as you mentioned: