how we can execute this program by removing error?

#include<iostream.h>
#include<conio.h>
#include<string.h>

class television
{
public:
int model;
int price,tv;
int size;
television()
{
model=size=price=0;
}
friend void operator >> (istream &din,television &tv)
{
cout<<"\n\nEnter model : ";
din>>tv.model;
if(tv.model>9999)
{
// throw tv.model;
throw "price less than 9999";
}
cout<<"\n\nEnter size : ";
din>>tv.size;
if(tv.size<12 || tv.size>70)
{
throw tv.size;
}
cout<<"\n\nEnter price : ";
din>>tv.price;
if(tv.price<0 || tv.price>5000)
{
throw tv.price;
}
}
void set()
{
model=price=size=0;
}
friend void operator<<(ostream &dout,television &tv)
{
dout<<"\n\nModel : "<<tv.model;
dout<<"\n\nSize : "<<tv.size;
dout<<"\n\nprice : "<<tv.price;
}
};

void main()
{
television t;
try
{
cin>>t;
}
catch(int);
{
cout<<"\n\nException caught";
t.set();
}
catch(float n)
{
cout<<"\n\nException caught";
t.set();
}
catch(double n)
{
cout<<"\n\nException caught";
t.set();
}
cout<<t;
getch();
}

catch(int);

remove the semi colon.
Topic archived. No new replies allowed.