Finished a program challenge, would like some input please

Started by
9 comments, last by wild_pointer 18 years ago
Just some really general stuff:

You have a bit too much going on in main, there shouldnt be much actual work being done there.

You have a big switch statement thats only purpose is to print a message, why not move all the logic in there (move it into functions first, while you're at it) instead of rechecking menuchoice later?

Declare variables near first use, not all at once at the beginning of a code block (this isn't C89).

Don't use inline. If you understand what it actually means to declare something inline well enough to prove that my previous statement isn't always good advice, then you can use it =)

Please don't let RAZORUNREAL confuse you as far as gameList not being a list goes =P You're correct in your thinking.
[size=2]

This topic is closed to new replies.

Advertisement