How to do block comment in fortran?

前端 未结 6 1163
-上瘾入骨i
-上瘾入骨i 2021-01-03 21:06

I have seen /* block comment */ for block commenting in C++. I know I can do line commenting by using ! or c, but is there any option

6条回答
  •  死守一世寂寞
    2021-01-03 21:48

    If your FORTRAN compiler supports preprocessor macros then a popular method is to use (What exactly does an #if 0 ..... #endif block do?)

    #if 0
    ...
    Your comments ...
    go here ...
    ...
    #endif
    

提交回复
热议问题