I really enjoy coding, so it's not really work for me.
But really, I should thank you. I had no idea that there were so many issues with the code, and you made me notice them. Plus the way I'm doing it now requires me to learn how to use pointers, which is something I've been meaning to learn to do for a long time*.
I also wasn't really apologizing for it taking a long time, it was more for me saying that it would be done in a couple days than not having it done.
*A note to all of you who are knowledgeable about C++: I WILL have questions concerning these