65,189
社区成员




#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int ret_vecInt(vector <int> &list)
{
list.clear();
list.push_back(...); // 或者其他的赋值
return 0;
}
int main()
{
vector <int> vecIntTemp(5, 10);
ret_vecInt(vecIntTemp);
return 0;
}