数组vector溢出
这个未解决
访问了一个未定义的数组下标,下标访问越界
front()成员函数的访问错误,不能是一个空的数组vector
0x753944C2 处(位于 demo_code.exe 中)有未经处理的异常: Microsoft C++ 异常: std::bad_alloc,位于内存位置 0x0077F5A8 处。
原来throw invalid_argumant,应该用try-catch语句捕捉异常。去掉语句后,throw的invalid_argument没有被捕捉,引起的程序崩溃