2017-07-30 211 views
2

我是新來的Fortran,我不明白這行:Fortran中的advance ='no'是什麼意思?

write(*,'(a35)', advance='no') 

在:

program democonvertion 

    implicit none 

    real :: tc, tf, tr, tk 

    write(*,'(a35)', advance='no') 
&  "Enter the temperature in Celcius: " 
    read(*,*) tc 

    tf = (9./5) * tc + 32 
    tr = (4./5) * tc 
    tk = tc + 273 

    write(*,*) 
    write(*,'(4a11)') "Celcius","Farenheit","Reamur","Kelvin" 
    write(*,'(4f11.2)') tc, tf, tr, tk 

    end program democonvertion 

我已經編譯的代碼和它的作品。但我仍然不明白。

+0

你對哪條確切線感到困惑?您從整個程序中提供了許多代碼行。 – ajc2000

+0

寫(*,'(a35)',advance ='no') –

+0

[檢查](http://www.personal.psu.edu/jhm/f90/lectures/22.html) – Durga

回答