抛出异常有关问题

抛出错误问题
#include<iostream>
using namespace std;
double s(double a,double b,double c)
{
if(a+b<=0||a+c<=0||b+c<=0)
throw 1;
else if(a+b<=c||a+c<=b||b+c<=a)
throw 1.00;
return a*b*c;
}
int main()
{
double a,double b,double c;
double are;
cout<<"请输入三边长"<<endl;
cin>>a>>b>>c;
try
{
are=s(a,b,c);
cout<<are<<endl;
}
catch(int 1)
{
cout<<"不符合数据"<<endl;
}
try
{
are=s(a,b,c);
cout<<are<<endl;
}
catch(double 1.00)
{
cout<<"请正确输入"<<endl;
}
return 0;
}

帮忙看一下我那错了!!我们刚学到错误处理,我还不太会!!!

------解决方案--------------------
catch(int 1) 改成 catch(int k)

catch(double 1.00) 改成 catch(double d)
------解决方案--------------------
try catch是异常处理机制,try段内运行可能抛出异常的代码段,抛出的异常由catch捕获。然后进行相应的处理。
------解决方案--------------------
探讨
#include<iostream>
using namespace std;
double s(double a,double b,double c)
{
if(a+b<=0||a+c<=0||b+c<=0)
throw 1;
else if(a+b<=c||a+c<=b||b+c<=a)
throw 1.00;
return a*b*c;
}
int main()
{
……