Hello, I have created a vector of pointers.
If I resize my vector, will it be filled in with NULL values?
Or will it point to garbage? If it will point to garbage, how do I init them on NULL?
This does not work because I am pointing to the values:Code:vector< vector< Tile*> > board; board.resize(size); for (int i = 0; i < size; i++) board[i].resize(size);
Thank youCode:for(int i =0; i < size; i++) { for(int j=0; j < size; j++) { board[i][j] = NULL; } }