大神帮我解释一下这个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=r

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 09:42:33
大神帮我解释一下这个C++的函数调用的程序#include#includeusingnamespacestd;doublef(double);doublexpoint(double,double);d

大神帮我解释一下这个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=r
大神帮我解释一下这个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

大神帮我解释一下这个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=r
#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