Original Post
I want to be able to store a vector object using an iterator for a vector of a vector ( vector >::iterator, is this possible In other words, I want to use the operator=() method of a vector >::iterator to assign it to a vector object ... NOTE: I IF THIS IS THE VECTOR >::ITERATOR ELEMENTS... { 0 ,1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 } { 10,11,12,13,14,15,16,17,18 } { 19,20,21,22,23,24,25,26,27 } { ..,..,..,..,..,..,..,..,.. } { ..,..,..,..,..,..,..,..,.. } { 72,73,74,75,76,77,78,79,80 } I want the iterator to store the vector of a vector like how you could with a sudoku puzzle, by subsquare ( elements 0,1,2,10,11,12,19,20,21 are in subsquare one and 3,4,5,13,14,15,22,23,24 are subsquare 2) and by row and column which are self explainatory [CODE="C++"] typedef unsigned int UINT; using namespace std; vector array; // push back 81 elements with the element index as it's value for(UINT i = 0; i < 81; i++) { aray.push_back(UINT); } vector >::iterator iArray; [Edited by - Mad_Coder on January 1, 2009 9:15:39 PM]