📄 8_6.cpp
字号:
//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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -