C++
C++ 标准模板库(STL)入门基础
1. 容器(Containers)1.1 序列容器vector - 动态数组#include <vector> #include <iostream> void vector_example() { // 创建和初始化 std::vector<int> v1 = {1, 2, 3, 4, 5}; std::vector<int> v2(5, 10);...