RE: question on character-like variable defination
- From: meek@xxxxxxxxxxxxxxx
- Date: 31 MAR 06 15:11:28 GMT
In a previous article, "sunnylele" <sjsongjing@xxxxxxxxx> wrote:
Hi, all,It's the new way - flags*5 means flags is character*5
in Fortran77, normally a variable to store a string can be defined as:
character file
-------------------------------------------------------
But how to interpret the following defination:
character*30 files,fileid,prname,nmname,nmriname,inhnam,fidnam,
# mgc1t1,mgc2t1,mgc1p1,mgc2p1,mgc1g1,mgc2g1
character flags*5,tfile*80,cmt*74
-------------------------------------------------------
what does it mean by "character*30" and "character flags*5"
Thanks!
Jing
That way you don't have to have a separate character statment
for each length you need.
Chris
.
- Follow-Ups:
- Re: question on character-like variable defination
- From: Richard E Maine
- Re: question on character-like variable defination
- References:
- question on character-like variable defination
- From: sunnylele
- question on character-like variable defination
- Prev by Date: RE: fortran code for 'cp' / subroutine file_copy
- Next by Date: Re: fortran code for 'cp' / subroutine file_copy
- Previous by thread: Re: question on character-like variable defination
- Next by thread: Re: question on character-like variable defination
- Index(es):
Relevant Pages
|