Multidimensional Arrays

Started by
1 comment, last by DudeMiester 21 years, 6 months ago
If I have a pointer to an array of unknown dimensions, is there a way to find out the dimensions of that array, or must I create some special class that keeps track of them?
[s] [/s]
I can see the fnords.
Advertisement
You can''t tell the size of an array at runtime from its pointer. Your best bet is to wrap it in a class that keeps track of the array''s size.
You could use the sizeof(the_pointer); or something like that... Or I''m wrong... Who knows? I never did that.


Beyaan

This topic is closed to new replies.

Advertisement