主题:菜鸟提问-彭国伦书
彭国伦书的两个例子,我写到一起去了,空格前后各位一段程序,为何放到一起就报错呢?
菜鸟,各位轻拍。
program main
character(len=20) stringstring="good moring"
write(*,*) string
string(6:)="evening"
write(*,*) string
string(1:3)="GOO"
write(*,*) string
string(5:5)="!"
write(*,*) string
character(len=6) first
character(len=10) second
character(len=20) add
first="Happy"
second="Birthday"
add=first//second
write(*,*) add
stop
end