Quote Originally Posted by swgh View Post
Just a small nit-pick.

If you can, try not to use global variables in your code. Arrays can be passed to a
function (they are automatically passed by reference anyway) so any changes will
effect the calling code.
I agree and avoid using #define if possible. It's better to use const int in this case since you can see the value while you are debugging.