Fortran 中如何使用 STOP 命令终止程序
在 Fortran 中,可以使用语句 'STOP' 来直接结束程序。例如:
program example
! some code here
if (condition) then
STOP
endif
! more code here
end program example
如果 'condition' 成立,程序将会直接停止运行。
原文地址: https://www.cveoy.top/t/topic/mXVn 著作权归作者所有。请勿转载和采集!