Skip to main content
gamedev.net
🔒 Locked

Array of pointers?

Started by CProgrammer Jan 3, 2004 at 3:04 AM 3 replies 250+ views
Original Post
CProgrammer
CProgrammer
How? Do I just define in **a and do a = new int*[num]; or how is it done.
emileej
emileej
int *ptrarr[25];
for(int i=0;i<25;i++)ptrarr=new int;

"Stop trying to hit me and hit me!"
Emil Johansen- SMMOG AI designerhttp://smmog.com
CProgrammer
CProgrammer
Yeah but I want a variabel amount of pointers.
-CProgrammer
Nypyren
Nypyren
You got it right with the original post.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.