Ok, I've done some reading, but now I'm not sure if iterators can even be used in an array.
All the examples I've read only use iterators with lists and vectors from the STL.
can they be used with an array? if so, I just need to know how to get it started.
I know you define an iterator for a vector like this;
Code:
vector <int>:: iterator iter
and doing for a list is similar, just using list linstead of vector.
so can I define an iterator for an array like this
Code:
foodpositions_<Position>:: iterator iter