Results 1 to 2 of 2

Thread: debugging an array

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    debugging an array

    is there anyway to see the entire contents of a dynamically allocaed array?

    if i do int *g = new int[10];
    fill it with values
    and then look at it in the locals window, all i can see is the first value unless i change what g points to.
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  2. #2
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    Use the watches window. Just type g into one fo the slots, or g+1, etc...

    Z.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width