scan_1.f90

来自「用于进行gcc测试」· F90 代码 · 共 32 行

F90
32
字号
program b   integer w   character(len=2) s, t   s = 'xi'   w = scan(s, 'iI')   if (w /= 2) call abort   w = scan(s, 'xX', .true.)   if (w /= 1) call abort   w = scan(s, 'ab')   if (w /= 0) call abort   w = scan(s, 'ab', .true.)   if (w /= 0) call abort   s = 'xi'   t = 'iI'   w = scan(s, t)   if (w /= 2) call abort   t = 'xX'   w = scan(s, t, .true.)   if (w /= 1) call abort   t = 'ab'   w = scan(s, t)   if (w /= 0) call abort   w = scan(s, t, .true.)   if (w /= 0) call abortend program b      

⌨️ 快捷键说明

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