This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

除零异常问题

您好,我在主函数中故意进行一步x=(float)1 / 0这样的操作,在调试过程中,没有产生异常,也没有进入中断中,貌似直接给计算过去了,我想问该要捕获这样的异常进行处理,我需要怎么样的配置。有没有相关的Demo程序?谢谢。