Thursday, October 8, 2009

Like pulling teeth...

So... I ended up scrapping the data structure classes again, and am now starting from scratch. I am no longer going to make use of the STL when it comes to data structures, because while they may be convenient, they really are just too bloated compared to what I am setting up. Plus, for the life of me, I could not figure out how to remove an element that is stored in the middle of a vector<> and then remove the entry from the list. You could delete an entry, but then if you set the pointer it stored to null, the next time the list was walked, the application would crash and burn.

That is why I am making my own structure to work with, which is a doubly linked list made to store pointers. Plus, I am adding procedures to remove the entry from the list so these issues can be avoided. I am hoping this will be the last time I will have to do this...

No comments:

Post a Comment