↧
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 ArticleAnswer 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 Articlec++ 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
More Pages to Explore .....