作业帮 > 综合 > 作业

大神帮我解释一下这个C++的函数调用的程序

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/18 00:23:39
大神帮我解释一下这个C++的函数调用的程序
#include
#include
using namespace std;
double f(double);
double xpoint(double,double);
double root(double,double);
int main()
{
double x1,x2,f1,f2,x;
{
coutx1>>x2;
f2=f(x2);
}
while(f1*f2>=0);
x=root(x1,x2);
cout
#include
#include
using namespace std;
double f(double);
double xpoint(double,double);
double root(double,double);
int main()
{
double x1,x2,f2,x;
{
coutx1>>x2;
f2=f(x2);
}
while(f2>=0);
x=root(x1,x2);
cout