int numItems = 0;
inventory[numItems++] = "sword";
inventory[numItems++] = "armor";
inventory[numItems++] = "shield";
***YOu are starting your array from 1 instead of 0.
well I dont actually know what your answer is saying, I believe your right, I do, Im sure you wouldn't have answered otherwise. But I just rewrote the entire reference and ran it and it worked so I am going to go through and just look to see what I typed wrong, thank you though.
That's what I was thinking was the problem (an infinite loop that is) cause I didn't know why else, it would screw up in the middle of running when it had already made some output but that's the thing I was looking through and since it ran, when it quit it just seemed to think that it was a successful run and printed off the time it took to run and didn't think there was anything wrong, I didn't give it the most thorough run over when looking for the program cause I knew it was simple I just said, "screw it, let them find it for me; Ill just re-type it (its from a book I am using to teach myself programming, and C++) and that way hopefully I type it write this next time and I can keep reading and learn what he was trying to teach me and come back to figure out what the stupid problem was after I have learned what I was supposed to from the lesson.