New to this board but not new to C programming. As a lone wolf engineer you come across what should be a simple issue but you don't have another engineer in your office so you have no one to bounce ideas off of and you get a little stuck.
Well I have just that type of issue right now. I am working on an embedded system using C as the programming language and I need to do something I have done in the past but a very distant past and I can't quite recall how I did it. So I thought I would do some research and see if I could find a good way to implement a menu system.
My project has an LCD and I need to implement some setup functions. The main menu would be something like:
1. Item1 4. Item4
2. Item2 5. Item5
3. Item3 6. Item6
Then you choose item #2 so go to submenu #2
1. Item2.a 4. Item2.d
2. Item2.b 5. Item2.e
3. Item2.c 6. Item2.f
Then select an item from this menu and act accordingly.
What I am looking for a little help on the best way to store the menu's. Individual character strings? An array of strings? A structure?
Once I figure out how I want to store the strings I can figure out how to manipulate them.
I am not looking for someone to do all the work for me but if you have any code snippets you would like to share that would be great.
Thanks and I look forward to any tips you can provide.