Standard C++ Library User Guide and Tutorial

}
catch (const exception& e)
{
cout << "Got an exception: " << e.what() << endl;
}
return 0;
}