[求助]这个return语句问题出在哪里啊?望指点
#include<iostream.h>short fun2(short m)
{
return m*m;
}
short fun1(short x,short y)
{
return (fun2(short x)+fun2(short y));
}
void main()
{
short a,b;
cout<<"input two numbers"<<endl;
cin>>a>>b;
cout<<"a*a+b*b="<<fun1(a,b)<<endl;
}
这个错在哪里啊???
这个里面的fun1调用fun2里面,那个return语句错在哪里啊????