Tuesday, March 27, 2012

Strings

These string indexes are getting on my nerves. The issue is, I always forget that the indexes start at zero, as opposed to one. This means that I'll write out a perfectly nice piece of code, double check for errors, run it, and then have to go back and shift everything back one so it'll work. Then, when I'm counting from the back instead of the front, it starts at negative one, instead of negative zero, so that messes me up again. If only it would start at one like counting does.

No comments:

Post a Comment