主题:一个输出格式错误~~再次麻烦大虾! 急~~
代码是:FORMAT(1X,'Y(1)=',D13.6,3X,'Y(2)=',D13.6,3X,'Y(3)=',D13.6,3X,'Y(4)=',D13.6,3X,'Y(5)=',D13,6)
然后COMPAIL后的错误是:
--------------------Configuration: BISHE - Win32 Debug--------------------
Compiling Fortran...
D:\BIYESHEJI\BISHE\ZHUCHENGXU.F90
D:\BIYESHEJI\BISHE\ZHUCHENGXU.F90(22) : Error: A dot (.) must appear in a format list in this context. [,]
30 FORMAT(1X,'Y(1)=',D13.6,3X,'Y(2)=',D13.6,3X,'Y(3)=',D13.6,3X,'Y(4)=',D13.6,3X,'Y(5)=',D13,6)
--------------------------------------------------------------------------------------------^
D:\BIYESHEJI\BISHE\ZHUCHENGXU.F90(22) : Error: A dangling constant exists. [6]
30 FORMAT(1X,'Y(1)=',D13.6,3X,'Y(2)=',D13.6,3X,'Y(3)=',D13.6,3X,'Y(4)=',D13.6,3X,'Y(5)=',D13,6)
---------------------------------------------------------------------------------------------^
Error executing df.exe.
ZHUCHENGXU.OBJ - 2 error(s), 0 warning(s)
请各位帮忙看下,谢谢啦~~~
然后COMPAIL后的错误是:
--------------------Configuration: BISHE - Win32 Debug--------------------
Compiling Fortran...
D:\BIYESHEJI\BISHE\ZHUCHENGXU.F90
D:\BIYESHEJI\BISHE\ZHUCHENGXU.F90(22) : Error: A dot (.) must appear in a format list in this context. [,]
30 FORMAT(1X,'Y(1)=',D13.6,3X,'Y(2)=',D13.6,3X,'Y(3)=',D13.6,3X,'Y(4)=',D13.6,3X,'Y(5)=',D13,6)
--------------------------------------------------------------------------------------------^
D:\BIYESHEJI\BISHE\ZHUCHENGXU.F90(22) : Error: A dangling constant exists. [6]
30 FORMAT(1X,'Y(1)=',D13.6,3X,'Y(2)=',D13.6,3X,'Y(3)=',D13.6,3X,'Y(4)=',D13.6,3X,'Y(5)=',D13,6)
---------------------------------------------------------------------------------------------^
Error executing df.exe.
ZHUCHENGXU.OBJ - 2 error(s), 0 warning(s)
请各位帮忙看下,谢谢啦~~~