STL vector的复制 #include <iostream> #include <vector> using namespace std; int main() { vector<unsigned int> v1, v2; v1.push_back(11); v1.push_back(44); v2 = v1; cout << v2[1] << endl; return 0; } 结果是:44