#include <iostream>
#include <vector>
#include <algorithm>
void print(int n) {
std::cout << n << " ";
}
int main() {
// vector线性容器,类似数组,可以自动存储元素,自动增长和减小空间,可以被迭代
int a[7] = {1, 2, 3, 4, 5, 6, 7};
// iv(first:a,last:a+7)
std::vector<...C++STL之vector
767 views