Re: [問題] 請高手幫忙
小弟不才,雖然有初步把兩行連接的問題照著T大的方式解決了。
但執行檔執行出來依舊還是有錯:
--------------------Configuration: AL_best(2) - Win32
Debug--------------------
Compiling Fortran...
C:\Documents and Settings\user\桌面\AL_best(2).for
C:\Documents and Settings\user\Ra-±\AL_best(2).for(200) : Error: Syntax
error, found END-OF-STATEMENT when expecting one of: ( <IDENTIFIER>
<CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT>
<INTEGER_CONSTANT> ...
1 1.0D17*(G1(0)+G1(1)*t_e+G1(2)*t_e**2+G1(3)*t_e**3+G1(4)*t_e**4+
--------------------------------------------------------------------------^
C:\Documents and Settings\user\Ra-±\AL_best(2).for(202) : Error: Syntax
error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; BLOCK
BLOCKDATA PROGRAM TYPE COMPLEX BYTE CHARACTER ...
/(G2(0)+G2(1)*t_e+G2(2)*t_e**2+G2(3)*t_e**3+G2(4)*t_e**4+
----------^
C:\Documents and Settings\user\Ra-±\AL_best(2).for(202) : Error: Syntax
error, found END-OF-STATEMENT when expecting one of: ( <IDENTIFIER>
<CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT>
<INTEGER_CONSTANT> ...
/(G2(0)+G2(1)*t_e+G2(2)*t_e**2+G2(3)*t_e**3+G2(4)*t_e**4+
-------------------------------------------------------------------^
C:\Documents and Settings\user\Ra-±\AL_best(2).for(202) : Error: A scalar
variable or an array element is required in this context.
/(G2(0)+G2(1)*t_e+G2(2)*t_e**2+G2(3)*t_e**3+G2(4)*t_e**4+
^
Error executing df.exe.
AL_best(2).exe - 4 error(s), 0 warning(s)
麻煩高手解惑了,小弟感激不盡 Q_Q
謝謝。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.87.246
→
08/26 15:04, , 1F
08/26 15:04, 1F
→
08/26 16:07, , 2F
08/26 16:07, 2F
→
08/26 22:54, , 3F
08/26 22:54, 3F
推
08/27 21:19, , 4F
08/27 21:19, 4F
→
08/28 09:19, , 5F
08/28 09:19, 5F
討論串 (同標題文章)
Fortran 近期熱門文章
PTT數位生活區 即時熱門文章