enum MenuOptionInitial { TEST_ONE = 1, TEST_TWO, TEST_THREE};
switch(selection)
{
case TEST_ONE:
//....
case TEST_TWO:
//....
case TEST_THREE:
//....
}
the problem is that i want to have another selection base on other options
i.e.
enum MenuSecond { TEST2_ONE = 1, TEST2_TWO, TEST2_THREE};
switch(another_selection)
{
case TEST2_ONE:
//....
case TEST2_TWO:
//....
case TEST2_THREE:
//....
}
what can i do , for this to work??
i want to have multiple enums...is it possible....???
I think that i could use namespaces to solve this problem{although i don't know how}...But i someone wanted to write to pure c {that doesn't have namespaces}, what would he do?