C++ Exception Try Catch Block

Objectives :

  • Code : myException3.txt
  • Return to reference (goto) point within the if Block
    • only when no error occurred
    • on error application will abort.

Step: 1 Create a project myExpception3

Step: 2 Create a source file

Step: 3 Edit Source code (This example resembles the two previous ones. The blue square shows the changes made in this example.

Step: 4 Runtime View


Using OR condition for n2

Step: 5b