throw an integer out : Throw « Language « C++
- C++
- Language
- Throw
throw an integer out
#include <iostream>
using namespace std;
int main () {
try
{
throw 20;
}
catch (int e)
{
cout << "An exception occurred. Exception Nr. " << e << endl;
}
return 0;
}
Related examples in the same category