c ++ terminate called after throwing an instance of ‘std::bad_alloc‘ what(): std::bad_alloc错误

c ++ terminate called after throwing an instance of ‘std::bad_alloc’
what(): std::bad_alloc错误
内存不够:

1,确认系统已占用内存是否正常,排除数据量过大导致的问题,此时系统内存不足导致 std::bad_alloc
2,内存泄漏问题
new出来的空间用完记得delete

你可能感兴趣的:(c++)