Thursday, February 24, 2011

C++ exception process

// exceptions
#include <iostream>
using namespace std;
int main () {
try
{
  throw 20;
}
catch (int e)
{
  cout << "An exception occurred. Exception Nr. " << e << endl;
}
return 0;
}