Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- cout << "start\n";
- try {
- cout << "Inside try block\n";
- throw 99;
- cout << "This will not execute";
- }
- catch (int i)
- {
- cout << "Caught an exeption -- value is: ";
- cout << i << "\n";
- }
- cout << "end";
- system("PAUSE");
- return 0;
- }
Add Comment
Please, Sign In to add comment