C++?????vector?????????
???????????? ???????[ 2014/7/11 11:30:38 ] ????????C++ net
????3.?????????
????????????±???????vector??????????????????????????????????????????????????????????????????????????????????
????1.??????iterator????
???????????????????????????????????????vector??
????vector<int> ::iterator iter;???????iter??
????2.begin??end????
???????????????????????????begin??end?????????????????????????????????????????begin???????????????????
????vector<int>::iterator iter=v.begin();
??????v??????iter???v[0]??
??????end?????????????????????????????????????v????begin??end??????????
????*iter=0;
????iter++???????????????????λ??
????????v[0]????0????end????????????н??????
????==??!=????????????????????????????????????????????????????????????????
????????????t?????
????for(vector<int>::iterator iter=v.begin();iter!=v.end();iter++)
????*iter=0;
??????vector?е???????????0??
??????
???·???
??????????????????
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