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
我已经编译的代码和它的作品。但我仍然不明白。
你对哪条确切线感到困惑?您从整个程序中提供了许多代码行。 – ajc2000
写(*,'(a35)',advance ='no') –
[检查](http://www.personal.psu.edu/jhm/f90/lectures/22.html) – Durga