I need a little help iterating through an inventory vector. I was playing around last night with making a text-based game called World of Textcraft, and I'm trying to use an iterator to search through a vector to find a required item. One thing before I continue: I made this program very quickly and as a sort of joke. I know I didn't code it with the best style, I know all of these nested case statements are probably not the best way to make all of those decisions. However, I just want to understand this whole "iterator" thing, which means understanding why I can't search through my inventory vector. The code is included in the "extra details" section.
Thanks.