I'm trying to assign these classes to my multi-dimension vector array but it doesn't work. I'm getting the error that undeclared pointers can't be assigned. But when I assign my array to declared object it doesn't work.
Extra thing to note, when I stopped making an array of vector pointers (by just making an array instead) it worked. But from advice, I was told that its better to keep (vector)arrays as pointers because pointers use less memory...
I'm planning on storing images into tiles, so a vector array is important. I'm making a side-scroler were I need to create, draw and delete vectors. (thats why the pointers are important)
To follow on, I suggest you use a shared_ptr<> (www.boost.org) or an auto_ptr<>. Naked pointers (like you're using) will require manually memory de-allocation. Smart pointers do not.