Re: [心得] fortran 的段落式的注解

看板Fortran作者 (sjgau)時間15年前 (2008/09/08 11:19), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
使用 block comment 改寫前面的 "hello, world!" OK! 使用的環境是 compaq visual fortran 6.6 !dec$if (.false.) CF0610.f90 FUNCTIONS: CF0610 - Entry point of console application. Example of displaying 'Hello World' at execution time. **************************************************************************** PROGRAM: CF0610 PURPOSE: Entry point for 'Hello World' sample console application. **************************************************************************** !dec$endif program CF0610 implicit none integer a, b, c a= 2 b= 4 c= a*b print *, 'Hello World', c end program CF0610 ※ 引述《sjgau (sjgau)》之銘言: : http://sjgau.javaeye.com/blog/51219 : ! 和 C 的注解,只能夠處理 一整行的注解,如果碰到 整個段落的注解, : 就要改用 上面所示範的注解。 : 註解是 非常重要的東西,請適當和正確的使用 註解。 : 其中的 "DEC" 應該是 DEC 電腦公司的意思,可能當初這個標準是 : 這個公司制定的吧。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.231.156.201
文章代碼(AID): #18n9ca70 (Fortran)
文章代碼(AID): #18n9ca70 (Fortran)