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