// tryDiv0.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char* argv[])
{
int i,j,k;
i=1;
j=0;
try
{
k=i/j;
}
catch(...)
{
printf("in catch!\n");
}
printf("k=%f\n",k);
return 0;
}
/*
in catch!
k=0.000000
*/