Dynamic output format setting

房东的猫 提交于 2019-11-29 16:31:12

Fortran recently added * as an unlimited format repeater. e.g., '( *(2X, F3.1) )' This is easier to use than a dynamic format.

You don't need to supply exact number of values, indicating more is ok. The normal way is to use a large enough value, like

        '(a,999f9.4)'

in Fortran 2008 u can use the feature M.S.B. shows *999(f9.4).

If you need dynamic string for some other purpose, use the concatenation operator //.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!