[問題] 請高手幫忙

看板Fortran作者 (kenshui)時間11年前 (2013/08/25 21:17), 編輯推噓1(104)
留言5則, 2人參與, 最新討論串1/2 (看更多)
請問大家, 執行檔說有以下錯誤: --------------------Configuration: AL_best(3) - Win32 Debug-------------------- Compiling Fortran... C:\Documents and Settings\user\桌面\AL_best(3).for C:\Documents and Settings\user\Ra-±\AL_best(3).for(200) : Error: Syntax error, found '&' when expecting one of: * :: , <END-OF-STATEMENT> ; : ) + . - (/ [ ] /) ** / > // .LT. < ... 11.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(3).for(201) : Error: Syntax error, found '+' when expecting one of: <LABEL> <END-OF-STATEMENT> ; BLOCK BLOCKDATA PROGRAM TYPE COMPLEX BYTE CHARACTER ... +G1(5)*t_e**5) ---------^ C:\Documents and Settings\user\Ra-±\AL_best(3).for(201) : Error: Syntax error, found ')' when expecting one of: <END-OF-STATEMENT> ; + . - // +G1(5)*t_e**5) ----------------------^ C:\Documents and Settings\user\Ra-±\AL_best(3).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(3).for(202) : Error: Syntax error, found '&' when expecting one of: * , <END-OF-STATEMENT> ; ) + . - ' ** / // /(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(3).for(203) : Error: Syntax error, found '+' when expecting one of: <LABEL> <END-OF-STATEMENT> ; BLOCK BLOCKDATA PROGRAM TYPE COMPLEX BYTE CHARACTER ... +G2(5)*t_e**5) -----------^ C:\Documents and Settings\user\Ra-±\AL_best(3).for(203) : Error: Syntax error, found ')' when expecting one of: <END-OF-STATEMENT> ; + . - // +G2(5)*t_e**5) ------------------------^ Error executing df.exe. AL_best(3).exe - 7 error(s), 0 warning(s) 可否請各位高手指點一下迷津,幫小弟指出個別的錯誤分別是什麼? 謝謝大家:) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.87.246 ※ 編輯: kenshui 來自: 140.113.87.246 (08/25 22:01)

08/25 22:26, , 1F
f77要把兩行連起來可以看這裡 http://goo.gl/9ZAjLr
08/25 22:26, 1F

08/25 22:26, , 2F
Continuation那裡
08/25 22:26, 2F

08/25 22:54, , 3F
大感謝,其實我後來發現是F77,黃國倫的書沒有寫F77兩行連
08/25 22:54, 3F

08/25 22:54, , 4F
起來怎麼寫。
08/25 22:54, 4F

08/25 22:54, , 5F
說錯,是彭國倫>"<
08/25 22:54, 5F
文章代碼(AID): #1I6WG3mk (Fortran)
討論串 (同標題文章)
文章代碼(AID): #1I6WG3mk (Fortran)