IF<表达式>THEN<语句1>ELSE<语句2>的后缀表达式是<表达式> P1 jez <语句1> P2 JUMP P1:<语句2> P2:为什么请解释下。

解决方案 »

  1.   

    <表达式 > P1 jez   -- 条件
    <语句1 >          --执行语句
    P2 JUMP P1: : --P2跳出P1
    <语句2 > P2     --执行语句
    --例如
    var
      i: integer;
      i:=inttostr(edit1.text);
     Begin
       if i>1 then
          Showmessage('1')
       Else
          Showmessage('2') ;
     End;
      

  2.   

    为什么IF <表达式> THEN <语句1> ELSE <语句2>的后缀表达式是<表达式> P1 jez  <语句1> P2 JUMP P1: <语句2> P2:请解释下。