Program subString
implicit none
character(len=20):: str = "hello, world!"
write(*,*) str(2:2)
write(*,*) str(2:7)
End program subString
为啥会
Warning:This argument's data type is incompatible with this intrinsic procedure; procedure assumed EXTERNAL. [INT]
报错:This name does not have a type, and must have an explicit type. [INT]
报错:Compilation Aborted (code 1)