• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Array of Class C++ question

Ynog

Golden Member
Its been a while since I have used C++ so I ask this question

I need to create a dynamic array that contains pointers to classes.

What is the best way to do this?
 
Originally posted by: EagleKeeper
use the vector<class*,class*> name;


yep ... use the vector container from STL

But shouldn't it just be

vector<class*> hndl;

Not sure what the second class* is for in yours?
 
Back
Top