“We do not use C++ exceptions” — What's the alternative? Let it crash?

前端 未结 7 423
南旧
南旧 2021-02-01 14:25

\"We do not use C++ exceptions.\"

If you don\'t use exceptions, what happens when there\'s an error? You just let the program crash?

7条回答
  •  粉色の甜心
    2021-02-01 15:08

    You use the error-code-returning versions of functions and act according to the return value.

提交回复
热议问题