Fortran 如何将字符数组的值赋给字符变量?
character*10filenamecharacter*10,dimension(:),allocatable::namelistdoi=1,nfilename=na...
character*10 filename
character*10,dimension(:),allocatable :: namelist
do i=1,n
filename=namelist(i) !frotran 里不允许直接赋值?如何实现这一步
end do
open(7,file='filename')
............. 展开
character*10,dimension(:),allocatable :: namelist
do i=1,n
filename=namelist(i) !frotran 里不允许直接赋值?如何实现这一步
end do
open(7,file='filename')
............. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询