跳到主要内容

Fortran 声明:字符串

character a ! 字符
character*10 a ! 字符串
a = 'Hello'
b = 'That''s right' ! 单引号封装,连用单引号
c = "That's right" ! 双引号封装,任意用单引号
d = "That's ""right""" ! 双引号封装,连用双引号