using namespace std;
void UsingAssign()
{
vector<int> V1;
vector<int> V2;
for (auto i = 0; i < 10; ++i)
{
V1.push_back(i);
}
for (auto i = 0; i < 10; ++i)
{
cout << V1[i] << " ";
}
cout << endl;
V2.assign(7, 4);//增加7个数字 都为4
cout << "v3 = ";
for (auto& v : V2) {
cout << v << " ";
}
cout << endl;
V2.assign ({5, 6, 7 }); // put into the array 567
for (Auto & V: V2) {
COUT V << << "";
}
COUT << endl;
}