| 本人VS2010 ,Intel Fortran2014。代码文件为.f后缀 我的问题是:
 #include ‘para.h’与  include ‘para.h’[没有#号]有什么区别? 这是别人原来的程序,他的程序里都没有‘#’号,但编译会出错,在前边加‘#’号就恢复正常,不知道为什么?
 
 或者看一下下边的代码(两个文件在同一个文件夹下,test_for_preprocessor.f和para.h):
 
 [Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode !****************************test_for_preprocessor.f文件内容***********************************
      program xx
#      include 'pars.h'     !有没有‘#’号很关键,为什么?
      integer x
      x=I_MAX
      
      write(*,*)x,J_MAX,K_MAX
      end
 [Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode !****************************para.h文件内容***********************************
#    define I_MAX 41
#    define J_MAX 21
#    define K_MAX 61
 |