Ways to assign integers to names. Instead of:
int a = 0;
int b = 1;
int c = 2;
You create an enum that is:
enum Example
{
A = 0, B = 1, C = 2
};
Example a = A;
Useful for using integers as states.
Ways to assign integers to names. Instead of:
int a = 0;
int b = 1;
int c = 2;
You create an enum that is:
enum Example
{
A = 0, B = 1, C = 2
};
Example a = A;
Useful for using integers as states.