T
txtamil2
I have declared a vector like this:
typedef vector <int> myvec;
1. myvec vec1;
2. vec1.push_back(4);
3. vec1[100] = 5;
The question is how come line 3 works (no crash). But when I look at
the size, the size is 1.
Thanks.
Siva
typedef vector <int> myvec;
1. myvec vec1;
2. vec1.push_back(4);
3. vec1[100] = 5;
The question is how come line 3 works (no crash). But when I look at
the size, the size is 1.
Thanks.
Siva