C++Bug记录

何太狼 / 2023-07-23 / 原文

2023/7/23

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

开动态数组的时候参数为一个负值或其他一些奇怪的值