Thank you so much for your answers! I appreciate your collaboration!
If i want to insert the line str=char(iachar('0')+ord/10)//char(iachar('0')+mod(ord,10))//'.par' or write(nr_char,'(I2.2)') nr in a Subroutine such as program main
do ord=1,10
call read
end do
end main
subroutine read...
Hi everyone!
I have a problem in compiling a program i made in fortran because of an error that occur in this line:
str=char(iachar('0')+ord/10)char(iachar('0')+mod(ord,10))'.par'
open(lin,file=str,status='old')
I have defined ord as an integer, and str as a character, and that particular...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.