註解是 非常重要的東西
! 這一行是 註解
但是,對於 一整個 段落的注解,就需要 使用下列的方式來處理
[code]
! file: VF26.f90
program VF26
implicit none
! 以下的 block if 非常重要,他可以把整個段落的文章
! 一下子 通通變成 註解。
!DEC$IF (.FALSE.)
...("commented" code here -- although it's not greened out)
...
!DEC$ENDIF
print *, 'Hello World! at 10:51'
end program VF26
! end of file
[/code]
3 則留言:
[pre]
! file: VF26.f90
! 這一行是註解,註解很重要
program VF26
implicit none
! 以下的 block if 非常重要,他可以把整個段落的文章
! 一下子 通通變成 註解。
!DEC$IF (.FALSE.)
...("commented" code here -- although it's not greened out)
...
...
!DEC$ENDIF
! -----------------------------------------------
print *, 'Hello World! at 11:06'
end program VF26
! end of file
[/pre]
您好!请问段落式注释 !DEC$IF (.FALSE.) …… ! DEC$ENDIF里面的代码还是会运行呢?
您好!请问段落式注释 !DEC$IF (.FALSE.) …… ! DEC$ENDIF里面的代码还是会运行呢?
張貼留言