#include <iostream>
#include <memory>
using namespace std;
int main()
{
try
{
int i = 50;
throw i;
}
catch (int ex)
{
cout << "An integer exception : " << ex << endl;
}
return 0;
}
Posted inC++