#include <iostream.h>
double box_area(int);
double box_vol(int);
void main()
{
int l,w,d;
double a,v;
cout<<"length : ";
cin>>l;
a=box_area(l);
cout<<"area : "<<a;
cout<<"width : ";
cin>>w;
a=box_area(w);
cout<<"area : "<<a;
cout<<"length : ";
cin>>l;
a=box_vol(l);
cout<<"volume : "<<v;
cout<<"width : ";
cin>>w;
a=box_vol(w);
cout<<"volume : "<<v;
cout<<"depth : ";
cin>>d;
a=box_vol(d);
cout<<"volume : "<<v;
}
double box_area(int l);
double box_area(int w);
double box_vol(int l);
double box_vol(int w);
double box_vol(int d)
{
double area;
double vol;
area=l*w;
vol=l*w*d;
return area;
return vol;
}
then I get 2 error that are :-
i) error C2065: 'l' : undeclared identifier
ii)error C2065: 'w' : undeclared identifier
how can I solve it?thanks