看板Programming
標 題Re: [問題] 關於fortran input format的問題
發信站交大資訊次世代BS2 (Thu May 17 21:28:33 2007)
轉信站ptt!ctu-reader!ctu-gate!ctu-peer!news.nctu!news.cis.nctu!BS2
※ 引述《[email protected] (MK)》之銘言:
> 請問有要讀N個整數就給N個I10個格式的寫法嗎?
> 還是在就只有在N填入正整數?
> 感謝~
用迴圈不就好了 /_\
不過那樣好像各個 I10 之間一定要有換行才算數
你也可以用write寫出一個format string,
然後在後面的read敘述裡指定這個format string
這樣你 N 要定多少就多少
比如說寫20I10吧,那就是I20重覆20次
請你自己先摸索一下,恕不實作示範
因為這台電腦快沒電了…
--
美國戰後戰鬥機發展時程,F-80 - XF-108 : http://blog.bs2.to/post/GOLDMEMBER/8981
The UNIVAC Biblestory : http://blog.bs2.to/post/GOLDMEMBER/9041
The James Bond Superweaponry : http://blog.bs2.to/post/GOLDMEMBER/9002
今日的一言(2/10): 登月演說, 1962 : http://blog.bs2.to/post/GOLDMEMBER/7840
http://blog.bs2.to/GOLDMEMBER 法外科學暨工程顧問公司
--
▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄ <telnet://bbs.cs.nctu.edu.tw>
█▄▄▄▄█ █ ▄▄▄▄▄█ Player: GOLDMEMBER
▄█▄▄▄▄█ ▄▄▄█ █▄▄▄▄▄ From: 59-115-201-235.dynamic.hine
☆ 次世代BS2 ☆ 可申請個人板
150MB 相簿 http://pic.bs2.to 交大資訊人 250MB
1F:推 holyknight:感恩 140.115.201.55 05/18 02:55