Page 1 of 1

How to view contents of a vector array in debug window

Posted: Tue Apr 04, 2006 8:34 am
by MuhammadSohail
Hallo all,

Does any one knows, how can i view the contents of the specific index of the vector array in the debug window. I m using Microsoft visual studio 2005.


Posted: Tue Apr 04, 2006 10:22 am
by micros
If you mean in MSVC (prior to 2005, which is already smart enough; but this will work in that, too), it's

Code: Select all

If you need to know the number of elements, it's

Code: Select all

p_vec->_Mylast - p_vec->_Myfirst
EDIT: Oops, I think I've answered a different question.