switch statement - ANSI-C

U

user923005

Randy Howard wrote:
[snip]
I think your opinion on my advice is wrong. :)

Keep in mind, the OP in question here was originally asking about how
to do a switch on string arguments. Someone that unfamiliar with the
basics of the language at this point is much better off getting
something working, then determining if it is in fact a bottleneck, or a
don't care to overall performance than trying to dive off into
something completely new to them when they have so much other ground to
cover at the same time.

I still think using a well documented library would be easier (even for
a beginner) than coding and debugging 100 if/else-if statements.

But I guess the whole thing is a tempest in a teapot and performance
won't matter either.
 

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,780
Messages
2,569,611
Members
45,266
Latest member
DavidaAlla

Latest Threads

Top