- #1
hodei_cloud
- 19
- 0
Lets see if I explain myself. I want to FILL a string with the components of a character array. I have no idea, but seeing this example:
I try this one
I know that its wrong, but I don't know how to make it...
Any help will be gratefull
Code:
character(len=*),parameter::fname=" Paul",lname="Scholes"
character(len=20)::fullname
fullname=fname//" "//lname
Code:
character(len=1),dimension(5)::x
character(len=100)::string
x(1)='h'
x(2)='e'
x(3)='l'
x(4)='l'
x(5)='o'
do i=1,5
a=a//x(i)
enddo
Any help will be gratefull