📜  c++ 抛出异常 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:48.580000             🧑  作者: Mango

代码示例3
//throw "throws" an exception.
  
It is usually used like:

if(something isnt right){
  throw somethingee;
}

/*(std::)*/cout << somethingee;