Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #include <algorithm>
- #include <cmath>
- #include <vector>
- #include <sstream>
- class DivisionByZero{};
- using namespace std;
- int main()
- {
- int a, b;
- try {
- if(b == 0) {
- throw DivisionByZero();
- }
- }
- catch(DivisionByZero x) {
- cout << "" << "\n";
- }
- catch(...) {
- }
- cout << "\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement