여러분,Fortran 의 이 잘못 이 무엇 인지 좀 봐 주 시 겠 어 요?어떻게 고 쳐 요? open(1,file='data.txt') \x09real h,v,a,t,f,v0,g,H0 \x09f=0.03 \x09t=0.1 \x09g=9.8 \x09H0=100 \x09a=g \x09h=0 \x09v=0 \x09v0=sqrt(g/f) \x09do while(hv0)then \x09write(*,"(1x,F3.4)") v0 \x09else \x09write(*,"(1x,F3.4)") v \x09end if \x09end do \x09end \x09 오 류 는 다음 과 같다. F:\fortran hui\Text1.for(2) : Error: A specification statement cannot appear in the executable section. real h,v,a,t,f,v0,g,H0 --------^ Error executing df.exe.

여러분,Fortran 의 이 잘못 이 무엇 인지 좀 봐 주 시 겠 어 요?어떻게 고 쳐 요? open(1,file='data.txt') \x09real h,v,a,t,f,v0,g,H0 \x09f=0.03 \x09t=0.1 \x09g=9.8 \x09H0=100 \x09a=g \x09h=0 \x09v=0 \x09v0=sqrt(g/f) \x09do while(hv0)then \x09write(*,"(1x,F3.4)") v0 \x09else \x09write(*,"(1x,F3.4)") v \x09end if \x09end do \x09end \x09 오 류 는 다음 과 같다. F:\fortran hui\Text1.for(2) : Error: A specification statement cannot appear in the executable section. real h,v,a,t,f,v0,g,H0 --------^ Error executing df.exe.

이 오 류 는 형식 성명 문 이 실행 문 부분 에 나타 나 면 안 된다 는 뜻 입 니 다.
Fortran 에서 형식 성명 문 구 는 맨 앞 에 있 습 니 다.형식 성명 문 구 를 open 이라는 말 앞 에 놓 으 면 됩 니 다.