A angellover Unregistered / Unconfirmed GUEST, unregistred user! 2006-12-26 #3 function Ldexp(const X:extended;const P:integer):extended register; 说明: Ldexp函数用来计算X的P次方
朕 朕 Unregistered / Unconfirmed GUEST, unregistred user! 2006-12-26 #4 谢谢您, 不对吧?这是我查到的: 原型:function ldexp(x:float;const p:Integer):float 功能:返回2的p次方乘以x 而不是我说的那个呀,
A angellover Unregistered / Unconfirmed GUEST, unregistred user! 2006-12-26 #5 uses math; --------- procedure TForm1.Button1Click(Sender: TObject); var x, y, z : double; begin x := 10;//变量 y := 5/2; z := Power(x, y); ShowMessage(Format('%f', [z])); end;
uses math; --------- procedure TForm1.Button1Click(Sender: TObject); var x, y, z : double; begin x := 10;//变量 y := 5/2; z := Power(x, y); ShowMessage(Format('%f', [z])); end;
朕 朕 Unregistered / Unconfirmed GUEST, unregistred user! 2006-12-26 #7 Johnny_du兄的结果虽然正确但不是正解。如果我有100h哪你就麻烦了,要写100个h,正确答案是power.谢谢您们两