int max=10;
int* array = new int[max];
for(unsigned int i=0;i<max;++i) array=i;
Is there an easy way to have the debugger output the contents of the entire array in the locals window instead of just *array (i.e. array[0])? Is this possible for STL containers also?
vc71 debugger: visualizing arrays
You can't do it with STL containers, not in VS7 by default, although i did once install a plug in to display it.
Dave
Dave
To view the contents of an array you can type this in a watch window:
array, N
N in this case is the number of indices you want to view. With an STL vector you could do this:
vector._Myfirst, N
Let me know if this helps.
array, N
N in this case is the number of indices you want to view. With an STL vector you could do this:
vector._Myfirst, N
Let me know if this helps.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement