question

i create a vector and i have access an element which is not in the vector's range but it's a must
I'm not sure I understand what you are trying to say, but...

A vector is like an array. It's a contiguous list of elements; you can't just access arbitrary spots. Maybe you could use a different container, like a map of ints?
Topic archived. No new replies allowed.