16.2 Exception-Handling overview ∥直观的错误处理模式 Perform a task If the preceding task did not execute correctly Perform error processing else Perform next task If the preceding task did not execute correctly Perform error processing 将程序逻辑和错误处理逻辑混合,降低程序性能。 C++提供了异常处理模式!-将异常处理单独分离 0 2018, SEU. All rights reserved. 7© 2009, SEU. All rights reserved. © 2018, SEU. All rights reserved. 7 16.2 Exception-Handling Overview //直观的错误处理模式 Perform a task If the preceding task did not execute correctly Perform error processing else Perform next task If the preceding task did not execute correctly Perform error processing 将程序逻辑和错误处理逻辑混合,降低程序性能。 C++提供了异常处理模式!---将异常处理单独分离