Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Mister Stewart

what the hell does this mean...

This topic is 6590 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

suppose you have something in your C++ code that looks like this: **list; this is supposed to be a list of pointers, but it''s not an array(i don''t think it is anyway), so can any one rell me how this works? Thanks in advance. Also, on a completely unrelated topic, which do you think is better for making low poly models for use in games - milkshape or blender? just curious I AM TONY MONTANA!!! YA F**K WITH ME, YA F**K WITH DA BEST!!!

Share this post

Link to post
Share on other sites
It''s a pointer to a pointer...

and array is simply a pointer to some memory space, if you have
char temp[100]; temp is a pointer to char.

What you have is a pointer to and array, it''s just that you don''t have any memory space for the array yet.

But you could just type: TYPE *list[100]; and you''ll have an array of pointers to TYPE

Share this post

Link to post
Share on other sites
Depends on what you do, but you can access it like an array if wanted to.

For an instance, if you wanted to access the pointer that was in the 4 position it is valid to do this with an index like an array :


You could also do list[4][3] if say the 4th element was a string. Just imagine if using the argv variable on command line. Most code you will see would do something like string=argv[2]. Well argv[][] actually **argv.

This note does not seem to clear to me. Think it would be better to include in your post what or how you are using your pointer to pointer. Then maybe a better example could be given.

All messages are of my own personal opinion and
not meant to offend. But if they do - tough


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!