例程名称在Fortran 90中的最大长度 [英] Routine name maximum length in Fortran 90
本文介绍了例程名称在Fortran 90中的最大长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道Fortran 90中例程名称和变量名称的最大长度吗?
Does anyone know if there is a maximum length for routine names and variable names in Fortran 90?
推荐答案
是的,Fortran标准定义了事物名称(包括例程和变量)的最大长度.在Fortran 90/95中,最大长度为31个字符,在Fortran 2003中,现在为63个字符.在早期版本中,它只有6个字符.您的编译器可能允许(非标准)更长的名称.
Yes, the Fortran standards define a maximum length for names of things, including both routines and variables. In Fortran 90/95 the maximum length was 31 characters, in Fortran 2003 it is now 63 characters. In earlier versions it was as short as 6 characters. Your compiler may allow (non-standard) longer names.
这篇关于例程名称在Fortran 90中的最大长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文