Following program is showing an error while running in turbo c : undefined symbol for "try" statement missing after try .
#include<conio.h>
#include<stdlib.h>
#include<iostream.h>
void main()
{
clrscr();
int a,b,c;
cout<<"enter two values"<<endl;
cin>>a>>b;
try
{
if(b>0)
{
cout<<"result(a/b)= "<<a/b<<endl;
}
else
{
throw(b);
}
}
catch(int i)
{
cout<<"exception caught "<<b<<endl;
}
cout<<"end";
getch();
}
please help
thank you
