foodpositions_[ ]is an array of 5 structures that hold two ints.
its declared elsewhere in the code, heres a looky
Code:
//decleration of position
struct Position
{
int x_;
int y_;
Position(int x,int y) : x_(x), y_(y){}
};
Code:
//declaration within the food class
Position foodpositions_[5];
I believe i is declared here;
Code:
for (Position foodpositions_[ ]::iterator i = foodpositions_[0]; i != foodpositions_[5]; ++i)
but like I said, I'm unfamiliar with using iterators, does it need to be declared somewhere else?