I\'m a total newbie with tons of ?\'s in my mind and a lot to experience with C++ yet! There\'s been something which I find really confusing and it\'s the use of public vari
I know in Java we use public variables, in fact,
public static final
variables as means to specify constants before enumeration was introduced.
For example,
class Direction
{
public static final String NORTH = "north";
...
}
It has been a while I looked into C++, so not sure if there are enumerated types available. You can use the similar code above if enumeration is not available in C++