Quantcast
Channel: c++ vector with object pointers - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by João Augusto for c++ vector with object pointers

Since, you didn't posted the code of how you are obtaining the values, compare to this, and try to find your problem...std::vector<std::vector<Field*> > maze; // Ini for(int i = 0; i <...

View Article


Answer by Luchian Grigore for c++ vector with object pointers

Why declare the maze as Field***?The C++ alternative is std::vector<std::vector<Field*> > maze;, and that's what you should use.

View Article

c++ vector with object pointers

i have to implement a small and simple game in c++ (a maze) and I have some problems right now.Some snippets:I've got an array of object pointers which represents my fields in the mazeField***...

View Article
Browsing all 3 articles
Browse latest View live