If you want to dynamically add items to something, you can use list . You can create a global list and dynamically add items to it as needed. If you really need array type functionality, vector may be more than your speed. In this case, the STL is likely to provide you with what you need.
, . , , . .