Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- void functionC()
- {
- //your code here
- }
- void functionB()
- {
- //your code here
- std::cout << "Starting functionB()\n";
- functionC();
- std::cout << "Ending functionB()\n";
- }
- void functionA()
- {
- // your code here
- functionB();
- // your code here
- std::cout << "Caught an exception: " << e.what() << std::endl;
- // your code here
- }
- int main()
- {
- std::cout << "Starting main()" << std::endl;
- functionA();
- std::cout << "Ended normally." << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement