主题:module文件调用
先单独建立了一个global.f90的module文件,里面n是实数,编译一下没有错误,当另外一个.f90程序中
subroutine input
use global
open(1,file='input.txt')
read(1,*) n
....
再一次编译时,就出现Warning: Variable n is used before its value has been defined
请各位大侠帮帮忙,谢谢了
subroutine input
use global
open(1,file='input.txt')
read(1,*) n
....
再一次编译时,就出现Warning: Variable n is used before its value has been defined
请各位大侠帮帮忙,谢谢了