|
本帖最后由 saharazyy123 于 2023-2-23 19:31 编辑
导师给的代码有语法错误,请问大家应该怎么改?第一次接触fortran,不是很懂。本来有3个错误,我删掉了两个引号,然后就只剩一个错误了。源代码是这个:
open(unit=1,file=fname,status='old')
open(unit=2,file='fwi0007.out', status = 'new')
write(2,*) Station Month Day FFMC DMC DC ISI BUI FWI DSR
write(2,*) -------------------------------------------------------------------
语法错误是这个:
D:\FWI\TEST\fwi.f(69) : Error: Syntax error, found END-OF-STATEMENT when expecting one of: ( <IDENTIFIER> <CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> <INTEGER_CONSTANT> ...
write(2,*) -------------------------------------------------------------------
--------------------------------------------------------------------------------------^
Error executing df.exe.
fwi.obj - 1 error(s), 0 warning(s)
感谢大家帮忙!!!
|
|