I can't work this one out.. please help.
I have a matrix (vector<vector>), and fill it with chars read from file.
Here it looks as it should, something like:Code://-- while still stuff to read for(int i=0; i<=width && y<=height; i++) { v.put(y, i, templine[i]); cout << v.at(y, i); } y++; cout << endl;
¤******¤
¤******¤
¤******¤
Then I call this:
And it looks like this:Code:for(int i=0; i<height; i++) { for(int j=0; j<width; j++) cout << v.at(i, j); cout << endl; }
*****¤
¤******¤
¤******¤
What am I missing here?!
/hsv



LinkBack URL
About LinkBacks



