- #1
_Andreas
- 144
- 1
Hello.
I'd like to create an array containing characters (basically a word stored as a 1xn array). I have no idea how to do this, however. I thought that the most obvious way to do it (yes, it would've been highly impractical for long words) was to write
character, dimension(3) :: A
A=[F,P,G]
but that doesn't work at all. Any suggestions?
I'd like to create an array containing characters (basically a word stored as a 1xn array). I have no idea how to do this, however. I thought that the most obvious way to do it (yes, it would've been highly impractical for long words) was to write
character, dimension(3) :: A
A=[F,P,G]
but that doesn't work at all. Any suggestions?