本帖最后由 Faye 于 2016-5-23 16:40 编辑
源代码:[Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode program main
implicit none
character(len=20) :: string
write(*,*) "string:"
read(*,*) string
print*,string
end program
我想做的是:从键盘读入一个带空格的字符串,比如“what's your name?”
但现在只能读入“what's“,小白求教。
|