我正在分析 Fortran 代码并有一个简单的问题。
我想知道下面代码中 100 和 200 处的“继续”语句的作用。
它会增加 i 和 j 计数器吗?如果是这样,那么条件不会if( .not. flg )包含flg循环中 flg 的“最后一个值”的值吗j = i+1 to N?
do 100 i = 1, N-1
flg = .false.
do 200 j = i+1, N
if( "my condition" ) flg = .true.
200 continue
if( .not. flg ) then
! do something here.
endif
100 continue
Run Code Online (Sandbox Code Playgroud)