|
|
| The size of all int are 5 |
k.at(0) is vector ik.at(1) is vector jk.at(0)->at(0) is value 1. from vector ik.at(0)->at(1) is value 1. from vector ik.at(1)->at(0) is value 3. from vector jk.at(1)->at(1) is value 4. from vector jk.at(1)->at(2) is value 5. from vector j |
|
| Returns the number of elements in the vector. This is the number of actual objects held in the vector, which is not necessarily equal to its storage capacity. |
unsigned int size() const. It will return the number of elements the vector contains (literally; 0 = no elements, (so your_vector.size() - 1) would be the very last element). |
|