#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> Vec;
for (int i = 0; i < 30; i++)
{
Vec.push_back(i);
//cout << Vec.size() << endl;
//cout << Vec.capacity() << endl;
//cout << endl;
}
//使用at()处理越界的问题
for (int i = 0; i < Vec.size()+2; i++)
{
try
{
//
标签:STL,int,vector,报错,Vec,include
From: https://www.cnblogs.com/VisionSeven/p/18082998