0
我有一个FORTRAN函数来改变字符串的情况下函数返回改变其输入
Function chcase (a) Result (b)
Character (Len=:), Allocatable :: b
Character (Len=*), Intent (In) :: a
Create string s, upper case of string a
...
b = Trim (s)
End Function chcase
我希望能够通过调用
s = chcase (s)
改变使用相同字符串的话应该我更好地利用
Character (Len=*), Intent (InOut) :: a
使用意向(在)我仍然得到正确的结果