How to view array/vector content in debugging mode?

R

Ricky

Hi,

I am using VS.net 2003, I found that in the debugging mode, I cannot
view the content of a vector/array(2-D).

For example:

vector< vector<int> > v;

vector<int> rowVector(2);

rowVector[0] =101;
rowVector[1] = 102;

V.push_back(rowVector);

In debugging mode, I add rowVector[0] , rowVector[1] to "watch"

This is okay. But when I add V[0][1], or V[0].size()

it return -> V[0][1] CXX0058: Error: overloaded operator not found

using cout , I can write the content to the console.

What is the problem?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top