关于Fortran中write语句的用法,我是小白,请问这个代码是什么意思:write(*,'(1x,''---------------------------------------------''+ ,''---------------------'')') write(*,'(7x,"t(s)",5X,"Pa(kPa)",4X,"Pw(kPa)",4X,"Set(cm)")')write(*,'
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 19:11:20
关于Fortran中write语句的用法,我是小白,请问这个代码是什么意思:write(*,'(1x,''---------------------------------------------''+ ,''---------------------'')') write(*,'(7x,"t(s)",5X,"Pa(kPa)",4X,"Pw(kPa)",4X,"Set(cm)")')write(*,'
关于Fortran中write语句的用法,
我是小白,请问这个代码是什么意思:
write(*,'(1x,''---------------------------------------------''
+ ,''---------------------'')')
write(*,'(7x,"t(s)",5X,"Pa(kPa)",4X,"Pw(kPa)",4X,"Set(cm)")')
write(*,'(1x,''---------------------------------------------''
+ ,''---------------------'')')
憋了好久,
关于Fortran中write语句的用法,我是小白,请问这个代码是什么意思:write(*,'(1x,''---------------------------------------------''+ ,''---------------------'')') write(*,'(7x,"t(s)",5X,"Pa(kPa)",4X,"Pw(kPa)",4X,"Set(cm)")')write(*,'
1x表示输出一个空格,以此类推.
估计你这个是固定格式的源程序,那个“+”号是续行符号.
如果是这样输出结果就应该是:
------------------------------------------------------------------
t(s) Pa(kPa) Pw(kPa) Set(cm)
------------------------------------------------------------------