小编mr.*_*aco的帖子

Fortran中的advance ='no'是什么意思?

我是Fortran的新手,我不明白这条线:

  write(*,'(a35)', advance='no')
Run Code Online (Sandbox Code Playgroud)

在:

  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
Run Code Online (Sandbox Code Playgroud)

我已经编译了这段代码,并且可以正常工作。但是我还是不明白。

fortran

3
推荐指数
1
解决办法
3852
查看次数

标签 统计

fortran ×1