cpar가 선언되면이 메인strlen은 실제로 무엇을하고 있습니까?
if(nfil.lt.0)then
call strlen(cpar,i1,i2)
open(unit=10,file=cpar(i1:i2),status='old')
에서 서브 루틴 나 strlen
subroutine strlen(string,i1,i2)
character string*(*)
do 10 i=len(string),1,-1
if(string(i:i).ne.' ')then
i2=i
goto 11
endif
10 continue
11 do 20 i=1,len(string)
if(string(i:i).ne.' ')then
i1=i
return
endif
20 continue
return
end
입니다 문자 cpar * (*)
는 이름에 관한 규칙이나 제한이 존재 하는가 cpar이 제대로 열려 있니?
내 hx263on.sens (cpar)을 읽을 수 없습니다. 왜죠?
주 프로그램에서'cpar'는'cpar * (*)'이상의 선언이 필요합니다. 찾을 수 있니? – francescalus
cpar는 "hx263on.sens (cpar)"또는 "hx263on.sens"또는 실제로 무엇입니까? 얼마나 걸리나요? 어떻게 인쇄하려고 했습니까? –
@VladimirF 아니요, 사실 hx263on.sens라는 파일에 이름을 지정했습니다.이 파일을 입력 파일로 사용하지만 읽을 수는 없습니다. –