vendredi 30 janvier 2015

nesting enum classes for a console menu

I'd like to implement a console menu like this:



1) Add character
1.1) Create manually
1.2) Create randomly
2) See character
2.1) List of characters
2.2) Go back
3) Edit character
...
...
4) Exit


To not extend it to long, the idea is to create a main menu with different sub menus with different options. My idea is to use enum classes to manage them. Looking for information I have read that nesting several enum classes is not feasible. I would like to know any suggestion for this.


Aucun commentaire:

Enregistrer un commentaire