⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qsort.f90

📁 对任意一个实数
💻 F90
字号:
program main
  use DFPORT
  implicit none
  integer :: a(5) = (/ 5,3,1,2,4 /)
  integer(2), external :: compareINT
  call QSORT( a, 5, 4, compareINT )
  write(*,*) a
  stop
end program

integer(2) function compareINT(a,b)
  implicit none
  integer a,b
  if ( a<b ) then
    compareINT=-1
  else if ( a==b) then
    compareINT=0
  else 
    compareINT=1
  end if
  return
end function

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -