views:

165

answers:

1

Is it possible to see the content of a dynamically allocated array, as in:

int *array = new int[dimension];

I only see the value of the pointer.

edit: just found the option "display as an array", but I always have to manually enter the size of the array. Is it possible to get that automagically?

+1  A: 

just found the option "display as an array", but I always have to manually enter the size of the array. Is it possible to get that automagically?

That's good. I'd stick with it. Getting the array automatically is not possible in the general case in C or C++, though surely in some trivial cases it could be done (but probably is not, yet--features need to be implemented before they exist, to paraphrase Raymond Chen).

John Zwinck