看来,当我们有<iostream>头,<exception>和<stdexcept>头被自动包含.
<iostream>
<exception>
<stdexcept>
问题是为什么像cppreference和cplusplus.com这样的参考网站<exception>在解释异常处理时会包含哪些内容?
是否有必要包括<exception>或<stdexcept>?
c++ exception-handling
c++ ×1
exception-handling ×1