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

📄 fgetc_2.f90

📁 linux下编程用 编译软件
💻 F90
字号:
! Testcase for the FGETC and FPUTC intrinsics! { dg-do run }  character(len=5) s  integer st  s = "12345"  open(10,status="scratch")  write(10,"(A)") "abcde"  rewind(10)  st = fgetc(10,s)  if ((st /= 0) .or. (s /= "a    ")) call abort  st = fgetc(10,s)  close(10)  open(10,status="scratch")  s = "12345"  st = fputc(10,s)  if (st /= 0) call abort  st = fputc(10,"2")  if (st /= 0) call abort  st = fputc(10,"3 ")  if (st /= 0) call abort  rewind(10)  st = fgetc(10,s)  if (s(1:1) /= "1") call abort  st = fgetc(10,s)  if (s(1:1) /= "2") call abort  st = fgetc(10,s)  if ((s(1:1) /= "3") .or. (st /= 0)) call abort  st = fgetc(10,s)  if (st /= -1) call abort  close (10)! FGETC and FPUTC on units not opened should not work  st = fgetc(12,s)  if (st /= -1) call abort  st = fputc(12,s)  if (st /= -1) call abort  end

⌨️ 快捷键说明

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