8_6.cpp
来自「《c++语言程序设计》例题程序」· C++ 代码 · 共 11 行
CPP
11 行
//Begin of file intmain.cpp //文件三,主函数
#include "Trapzint.h" //类声明头文件
#include "iomanip.h"
void main() //主函数
{
Fun f; //定义Fun类的对象
Trapz trapz1(f); //定义Trapz类的对象
cout<<"TRAPZ Int:"<<setprecision(7)<<trapz1(0,2,1e-7)<<endl; //计算并输出积分结果
}
//End of file intmain.cpp
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?