如题,谢谢
解决方案 »
- 使用TF1book控件的程序在别的机器上使用要怎么部署?
- 碰到一个棘手的问题,关于DLL封装类,接口
- 初次接触com, 客户端在Result := CreateRemoteComObject(MachineName, CLASS_aaa) as Iaaa时,提示: rpc服务器不可用
- 数据库数据放到edit中的问题,弱弱的问题
- splitter控件怎么用???
- 怎么编公式编辑器啊,网上有源程序下载吗?
- 用TDBGRID控件只允许修改表,不允许添加表,如何实现?
- 我的程序中引用了 TWebBorwser 控件,显示了一些内容,不固定,如何知道当前鼠标在哪个图片上呢?
- msbcode9.ocx 问题 有点难度
- 快来救急啊!indy控件为何无法这样发送邮件?
- 我在寻找一个人
- 如何给按钮加上提示?
begin
y:=1/(1+x);
end;function sin1(x:real):real;
begin
sin1:=sin(x);
end;
procedure integ(operation:func; a,b:real;var inte:real);
const n=100;
var
s,w:real;
i:integer;begin
w:=(b-a)/n;
s:=(operation(a)+operation(b))/2;
for i:=1 to n-1 do
s:=s+operation(a+i*w);
inte:=w*s;
end;var a0,b0,inte0:real;begin
writeln('Please input a and b:');
readln(a0,b0);
writeln('The following counts the integal of y=1/(1+x) from ');
writeln(a0:10:2,' to ',b0:10:2,':');
integ(y,a0,b0,inte0);
writeln('Throught method we get inte0=',inte0:10:2);
writeln('The following counts the integal of y=sin(x) from ',a0:10:2,' to ',b0:10:2,':');
integ(sin1,a0,b0,inte0);
writeln('Throught method we get inte0=',inte0:10:2);
end.