der_array_io_3.f90

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

F90
14
字号
! Test IO of character arrays in derived types.! { dg-do run }program main character*1000 buf1, buf2 type :: foo_type     character(12), dimension(13) :: name = "hello world "  end type foo_type  type (foo_type) :: foo!  foo = foo_type("hello world ")  write (buf1,*)  foo  write (buf2,*)  (foo%name(i), i=1,13)  if (buf1.ne.buf2) call abortend program main

⌨️ 快捷键说明

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