Is here a way to create an array that can grow as my input file grows and that can hold classes in C++ or C# and how do I do it, or would I be better of using a Red Black Tree?
This is a discussion on array of classes within the C++ Programming forums, part of the General Programming Boards category; Is here a way to create an array that can grow as my input file grows and that can hold ...
Is here a way to create an array that can grow as my input file grows and that can hold classes in C++ or C# and how do I do it, or would I be better of using a Red Black Tree?
You can use the std::vector container. If you want a sorted container, a std::set or std::map (both typically implemented with a balanced binary tree such as a red-black tree) might be appropriate.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way