简单的函数调用出错不会调试
新手学C++遇到的问题下面是源码,请大家指教,谢谢!!#include "iostream.h"void main()
{
double a,b;
cout <<"Please input the first number:";
cin >>a;
cout <<"Please input the second number:";
cin >>b;
double c=add(a,b);
cout<< c<<endl;
}
double add(double x,double y)
{
return x+y;
}