strret.f90
来自「用于进行gcc测试」· F90 代码 · 共 26 行
F90
26 行
! Program to test caracter string return valuesfunction test () implicit none character(len=10) :: test test = "World"end functionfunction test2 () result (r) implicit none character(len=5) :: r r = "Hello"end functionprogram strret implicit none character(len=15) :: s character(len=10) :: test character(len=5) :: test2 s = test () if (s .ne. "World") call abort s = "Hello " // test () if (s .ne. test2 () //" World") call abortend
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?