C/C++????????t??????
???????????? ???????[ 2016/1/28 10:05:55 ] ????????.NET ???????????
????????????????????
????1????????????????????????????????????????????????μ??????????λ???? iter ?????????????????????? n ??????λ?á?
????????????????????? iter ??? vector ?е?????????????? vector ????????????????????????????????? vector ?? size_type ?? difference_type ???????????
int main()
{
std::vector<int> ivec(10?? 68);
print_int_vector(ivec);
int i = 0;
for (std::vector<int>::iterator iter = ivec.begin(); iter != ivec.end(); ++iter?? i++)
*iter = i; // set element to which iter refers to i
print_int_vector(ivec);
std::vector<int>::iterator iter = ivec.begin();
iter += 100;
std::cout<<*iter;
return 0;
}
????????????ivec??10??????iter+=j??j??10??????????д??0~9???????????10?????????????????????????м??????????????????????
????2??iter1 - iter2??
????????????????????????????????????t???????? difference_type ?? signed ???? size_type ?????????? difference_type ?? signed ??????????????????????????????????????????????????洢?????????????????????????
????iter1 ?? iter2 ???????????? vector ?е???????????? vector ????????????????
????3???????????????????????????????????????????????硣???????????λ?? vector ?м?????
????vector<int>::iterator mid = vi.begin() + vi.size() / 2;
????????????????????? mid ?????? vi ?п??????м??????
????????????????????????????????????????????????????????м????????????????????Ч???????
????4??????????? vector ?????????????????????????Ч??
???????硣????? push_back ???????????????? vector ?????????????
????????????
????*iter = i; // set element to which iter refers to i
????ivec.push_back(i*2);
????????????????????????У???????????????for?????????У?????
????{
????*iter = i; // set element to which iter refers to i
????ivec.push_back(i*2);
????}
???????ī???????????
??????????@The_Third_Wave??Blog?????http://blog.csdn.net/zhanh1218???????
??????????в?????????н???????????????????????????????д??????????
????????????????????????????????????????????????????????????????Blog??
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
??C++????????????C++ lvalue??rvalueC++11????????C++???????????????C++?е?????????????????C++?????????C++???Windows????λ??C/C++???????????????????JAVA??C??C++??????????c++??python???????????????????????????????C++???????C++?е????????C++????????????????C++ ???????????????C++?????????????????????C++????????????
???·???
??????????????????
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????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????