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

📄 diagsk.f

📁 网络带宽测试工具
💻 F
字号:
      Subroutine diagsk( n, a, diag, offset )! ----------------------------------------------------------------------! --- diagsk determines whether diag is in a(n) where a(n) is a !     sorted array of integers. Because n is small (<= 1000) a(n)!     is simply linearly traversed. When diag is in a(n), offset!     is the index where it was found, if not,!     offset = largest index < diag.! ----------------------------------------------------------------------      Integer :: n      Integer :: a(n), offset, diag! ----------------------------------------------------------------------      offset = 0      Do i = 1, n         If ( a(i) >= diag ) Then            offset = i - 1            Exit         End If      End Do! ----------------------------------------------------------------------      End Subroutine diagsk

⌨️ 快捷键说明

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