Fortran出错[已解决]:there is no data-edit-descriptor to match a data-item in the I/O list, unit -5

问题

如题,对于代码

  1 logical a
  2 a=1
  3 write(*,'("nih hao 1",l4)')a
  4 write(*,'("this is some different2")')a
  5 end

运行时出现了如下错误:

forrtl: severe (105): there is no data-edit-descriptor to match a data-item in the I/O list, unit -5, file Internal Formatted Write

原因

没有加上对于逻辑变量a的描述,更改为

write(*,'("this is some different2",l4)')a
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值