Mega Code Archive
Categories
/
C++
/
Language
Throw an integer out
#include
using namespace std; int main () { try { throw 20; } catch (int e) { cout << "An exception occurred. Exception Nr. " << e << endl; } return 0; }