摘要:
(1)对于字符串变量,每次调用时都要重新初始化,否则保留上一次的结果。subroutine sub1 character(len=80) :: str1 str1 = 'abc' ! necessary .... if (condition) str1 = 'cba' ... if(str1(1:3)=='cba') ... ...endprogram main ... do i=1, n ... call sub1 ... end doend如果没有那步初始化,而... 阅读全文