找回密码
 注册
查看: 1892|回复: 2

求助fortran编程

[复制链接]
发表于 2005-9-22 09:48:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
READ (ITEMP(1:NCH), FMT(NCH), ERR = 400) RVAL(NFOUND)
ITEMP为字符串 NCH=3,FMT(NCH)=E3.0,RVAL(NFOUND)为实型数
为什么这个语句读的时候总出错,格式转换不对吗?
发表于 2005-9-22 13:46:02 | 显示全部楼层

求助fortran编程

if the number in the itemp that you want to read into the rval() is real,  try to use f3.0, if the numbers are integer, try to use I3 for the format

legolasGG
 楼主| 发表于 2005-9-22 22:11:10 | 显示全部楼层

求助fortran编程

谢谢,我想我解决这个问题了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表