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