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.
Thanks
How to view contents of a vector array in debug window
-
- Experienced Solver
- Posts: 96
- Joined: Fri Jun 17, 2005 1:53 pm
- Location: Germany
- Contact:
How to view contents of a vector array in debug window
Last edited by MuhammadSohail on Sun Apr 09, 2006 11:45 am, edited 1 time in total.
-
- Super wx Problem Solver
- Posts: 317
- Joined: Sat Mar 18, 2006 10:41 am
- Location: Ustek, Bohemia
If you mean in MSVC (prior to 2005, which is already smart enough; but this will work in that, too), it's
If you need to know the number of elements, it's
EDIT: Oops, I think I've answered a different question.
Code: Select all
p_vec->_Myfirst[index]
Code: Select all
p_vec->_Mylast - p_vec->_Myfirst