原创 c++ STL之vector

1.new vector<int> V; 2.push a element to V V.push_back(element); 3.visit elements in V by index cout << V[i]; by ite