#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> ivec;
ivec = {1, 2, 3, 4, 5};
for (auto val : ivec) {
cout << val << " ";
}
cout << endl;
return 0;
}
assignment operator(=) for vector demo
最新推荐文章于 2023-07-30 14:49:58 发布