fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(int argc, char** argv)
  6. {
  7. try {
  8. throw 7;
  9. } catch (int ex) {
  10. cout << "int: " << ex << endl;
  11. } catch (...) {
  12. cout << "..." << endl;
  13. }
  14. }
Success #stdin #stdout 0s 3272KB
stdin
Standard input is empty
stdout
int: 7