   Container Class
  I need a good container class like a Vector or linked listclass, something that supports dynamicly adding elements. I don''t really want to reinvent the wheel and I''m sure there is container classes in the standard windows librarys somewhere.what are they called and where can I get the documentation on them??  
  Well, you mentioned a container you would use in your original post!   A std::vector is great if you need a quick and easy dynamic array, and a std::list can also be used if you want a quick and easy linked list.  MFC has its own version of these contains, CArray and CList, but I prefer the standard library containers because you don''t need MFC to use them. ;  go with the standard library, STLit rox!  "No lies of sugar can sweeten the sournes of reality"}+TITANIUM+{ A.K.A. DXnewbie[onMIRC]  ;  I took a look at the Vector class in the STL and I really like it, but I'm confused on how to use it exactly. could someone give and example or a webpage with good documention on how to use, thanks.[edited by - Nullio on April 1, 2003 6:08:11 PM];Vector;    #include <iostream>#include <vector>using namespace std;int main(){   vector<int> array;   array.push_back(5);   array.push_back(301);   array.push_back(42);   cout << array[1] << endl;}    Basically you can push/pop from back or front, and access elements like array[index]. And remember, since it is a template class you can use whatever data type you want.If you're serious about using STL containers you need to look up iterators too, they're invaluable sometimes.[edited by - thehurricane on April 1, 2003 11:47:01 PM]