Need help writing more efficient code (total newbie)

lloyddean:
'const int' occupies no memory so it won't save a thing!

Oh, well sorry, I'm kind of new to C++ :slight_smile: