原生数组存在安全问题,C++标准库中提供了容器 语法: std::array<变量类型,元素数量>变量名; std::array<int,5>studentId studentId.size(); studentId.fill();