Hi guys and gals. It's been a while since I've posted here but I'm back.
I'm having some trouble with vectors, vector iterators, and vector element access. I know I've done this before but my memory is failing me apparently.
Okay here's the run down. I have a class that defines how to keep track of an item in an inventory i.e. a box. The class knows the dimensions of the box, the contents of the box, and how the box should be handled. As boxes are received, the newly created instance is pushed onto the vector.
Now I want to be able to access the elements of the vector through an iterator, which I know how to do. However I need to access certain methods of the box class when I use the iterator, not the entire instance itself. Can someone give me an example of being able to access class methods from a vector iterator or point me in the direction of something that might be able to help? Thanks in advance!