Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int x = -1;
- cout << "Pred try-catch" << endl;
- try {
- cout << "Inside try" << endl;
- if(x < 0) {
- throw "123";
- cout << "Posle frlanje(ne treba da se pecati" << endl;
- }
- }
- catch(const char *a) {
- cout << a << endl;
- }
- cout << "Posle try-catch" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement