try
{
  for (int i = 0; i<1000; i++)
  {
    test1 = new Test();
    cout << i << " new dog success..." << endl;
  }
}
catch (bad_alloc err)
{
  cout << "fail:"<<err.what()<< endl;
}

 

相关文章:

  • 2021-07-26
  • 2021-08-27
  • 2022-12-23
  • 2021-08-06
  • 2022-02-28
  • 2021-12-11
猜你喜欢
  • 2022-01-30
  • 2022-12-23
  • 2021-06-22
  • 2022-03-03
  • 2022-02-17
  • 2022-12-23
  • 2021-08-18
相关资源
相似解决方案