!****************************test_for_preprocessor.f文件内容***********************************
program xx
# include 'pars.h' !有没有‘#’号很关键,为什么?
integer x
x=I_MAX
write(*,*)x,J_MAX,K_MAX
end
!****************************para.h文件内容***********************************
# define I_MAX 41
# define J_MAX 21
# define K_MAX 61
fcode 发表于 2015-8-30 14:21
include 不是标准语法。
加 # 的是 fpp 的预处理指令。
不加 # 的是 ivf 扩展的 include。
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |