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

📄 getinput.f

📁 网络带宽测试工具
💻 F
字号:
      Subroutine getInput( inc, maxinc, minc )! ----------------------------------------------------------------------! --- Reads cases to be done by program 'mod1d' and determines the!     actual number of cases. !     Alerts when more than 'maxinc' cases are given in the input file.! ----------------------------------------------------------------------      Implicit    None      Integer  :: maxinc, minc      Integer  :: inc(maxinc)      Integer  :: ninc = 1! ----------------------------------------------------------------------! --- Open input file.      Open( 1, File = 'mod1d.in' )      Do         Read( 1, *, End = 10 ) inc(ninc)         ninc = ninc + 1         If ( ninc > maxinc ) Then            Print *, ' Too many input values: increase maxinc in',     &               ' program mod1d.'            Stop         End If      End Do   10 minc = ninc - 1! ----------------------------------------------------------------------      End Subroutine getInput         

⌨️ 快捷键说明

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