Già che ci siamo ...
codice:
#include <iostream>
using namespace std;

int main (int argc, char *argv[])
{
    try
        {
        int x = 1, y = 0 ,res = 0;
        res=x/y;
        }
    catch(exception& e)
        {
        cout << e.what();
        }
    cin.get ();
    return EXIT_SUCCESS;
}
Perchè non funziona ?