//练习4.21
#include <iostream>
#include <vector>
void main(){
std::vector<int> a{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 ,11,12,13,14};
for (auto i = a.begin(); i != a.end(); ++i){
*i = (*i & 0x1) ? (*i) * 2 : *i;
std::cout << *i << " ";
}
system("pause");
}