• 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.

Code help (Double pointers of objects and dynamically allocating it)

Glavinsolo

Platinum Member


So I have an object Reck

I have an assignment in my header
Reck** recks;


And I want to dynamically allocate that now that I know the value

value_of_recks=12;

so how do I make my recks= [12]?
---------------------------------------------------------

Basically I want to end up with

Reck* recks[12];

I am googling as we speek!

Thanks guys
 
recks = new Reck*[12];

btw we have a forum for this. though granted, if you posted there you mightnot get an anwer this quickly
 
Back
Top