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

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

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

if(something isnt right){
  throw somethingee;
}

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