Fortran - GOTO

Executable GOTO statements:

  GOTO snr1    - ordinary GOTO statement (jumps to the statement with
                 number snr1)

? GOTO (snr1, snr2, snr3), integer_expression - conditional GOTO statement. If the integer expression is 1, 2 or 3, execution jumps to statement number snr1, snr2 or snr3 (an arbitrary number of statement numbers snr are permitted).

??GOTO statement_number_variable, (snr1, snr2, snr3)
               - an assigned GOTO statement, jumps to the statement
                 number that equals the statement
                 number variable (an arbitrary  number of
                 statement numbers snr are permitted).

??GOTO statement_number_variable
               - this is an assigned ordinary GOTO statement, it is a
                 combination of the first one, GOTO snr1, and
                 previous one, GOTO statement_number_variable without
                 a list of permitted alternatives.

??ASSIGN statement_number TO statement_number_variable
               - statement number variables can not be assigned with
                 an ordinary assignment of the type (integer
                 variable = integer expression), it has to be
                 done with the ASSIGN statement.  The statement
                 number variable can then be used for an assigned
                 GOTO statement and in the ordinary GOTO statement
                 and also in connection with FORMAT.

? IF (numerical_expression) snr1, snr2, snr3
               - arithmetical IF-statement, jumps to statement number
                 snr1 if the expression is negative,
                 snr2 if the expression is zero,
                 snr3 if the expression is positive
 
 
refer: http://www.nsc.liu.se/~boein/f77to90/a2.html#section4

转载于:https://www.cnblogs.com/snigoal/archive/2012/02/11/2346337.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值