C++?????vector????
???????????? ???????[ 2014/5/6 11:26:19 ] ????????C++ vector
????vector?????????????????????????????????????????????????????????????
????vector?????????塣
????vector???????????vector??????????????????Ч?????????????????????
?????????????????????
??????????????????ж????κι?????????????????????????????????????????????е???????????????????????
????vector?±???????????
for(vector<int>::size_type ix = 0; ix != ivec.size(); ++ix)
ivec[ix] =0;
????(1)
??????????!= ??????????????<????????
????size()?????н????????vector???????????????????????size()????????????inline??????
???????????????????????±?????????????“??????“????????????ν??”?????????“???????°??????
??????????
????????????????????????????????????????????(???????????????????????????Щ?????????????????????????Щ????????????????????)
vector<int>::iterator iter;
vector<int>::iterator iter=ivec.begin(); //vector?????????ivec[0]
vector<int>::iterator iter=ivec.end(); //???vector?????????????????vectro????begin??end?????????????
vector<int>::const_iterator iter;
//???????????????????????????????*iter = 0??????
const vector<int>::iterator iter = ivec.begin(); //????????????????????++iter??????
????????????????????????????????????????????????
for(vector<int>::iterator iter = ivec.begin(); iter != ivec.end(); ++iter)
*iter = 0;
????(2)
????(1)??(2)??? ??2???????vector??????????????????begin??end??????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11