#include<iostream.h> I am experimenting with the following program for error handling. I get an error on the word try as "unrecognized word". Pl help
#include<conio.h>
void test(int i)
{
try
{if(i!=0) throw i;
else throw "Zero";}
catch(int a)
{cout<<"Caught an int"<<a<<endl;}
catch(char *s)
{ cout<<"Caught a string"<<s<<endl;}
};
void main()
{
clrscr();
test(1);
test(23);
test(O);
getch();
}
