A basic primitive interactive system

S

sugaray

Right now, the code I wrote below seems works fine, i know it's definitely
not the best solution, so if there are better solutions to
eschew from using goto statements to jump out of multiple loops ?
and any other suggestions or good ideas that are pertain to construct
a more powerful and common interactive menu system is also welcomed,
and if there's any primitive but better interactive system that is
written in C suitable for educational purpose you happen to know of,
let me know please, i need a good and relatively easy one to tamper
with in order to build my skill, thanx in advance for your help.
 
S

SM Ryan

(e-mail address removed) (sugaray) wrote:
# Right now, the code I wrote below seems works fine, i know it's definitely
# not the best solution, so if there are better solutions to

The better solution is what makes readable and maintainable. If that means
using gotos, then use them.

For a DFA, gotos are a natural implementation mechanism, and, if used
properly, they are as clear as any other textual presentation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top