#include <iostream> using namespace std; int main () { int top = 90; int bottom = 0; try { cout << "top / 2 = " << top / 2 << endl; cout << "top / bottom = " << top / bottom << endl; } catch ( ... ) { cout << "We have a problem." << endl; } cout << "Done" << endl; return (0); }
catch(...)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)