10.12. Exercise: Improve the color selector

In the external file where we defined the colors, for each color
keep also a character that will be used to display the menu:
File:

yellow y
brown  z
black  b
blue   e

When displaying the menu show:

y) yellow
z) brown
b) black
e) blue

and wait till the user selects the appropriate letter.


If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed