看板 Fortran 關於我們 聯絡資訊
program character(len=20) A,B integer YY !year write(*,*) "enter A and B" read A,B write "XXXX"AYY"ZZZZ"B 我想要設定 A是月份 譬如 jan, feb, mar, dec 等 B 是採樣點 譬如 M1, S1, S2, K1等 想要寫一個譬如說 XXXXdec13ZZZZS1 最近csh寫太多 csh 我想表示的應該是"XXXX"$A$YY"ZZZZ"$B 忘了 fortran 怎麼寫 找很久又找不到 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 107.15.112.169 ※ 文章網址: https://www.ptt.cc/bbs/Fortran/M.1431971016.A.E80.html
terryys: 用format 05/19 11:02
gilocustom: #1FJDSWcR 05/19 18:34
dreler1: 謝謝 05/19 22:20