Re: Random Numbers
- From: Walt Brainerd <walt@xxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 07:31:58 -0700
kia wrote:
Michael Metcalf wrote:Relying on error-prone implicit typing is
integer, parameter :: lbound = 1, ubound = 1500
Character(LEN=50),Dimension(lbound:ubound)::quotes
... and, to avoid storing treasures in heaven, you're also better off
avoiding the names of Fortran keywords as variable names. This is not
illegal, but will cause grief in the future.
Better still would be that you pointed out Fortran hidden treasures,
considering OP's newness, and advised a cleaner readable rendition. i.e.
parameter (n = 1500)
character*50 quotes(n)
as a contrast to that "new & mangled" verbosity.
definitely not good advice for a beginner.
--
Walt Brainerd walt@xxxxxxxxxxx
The Fortran Company
6025 N. Wilmot Rd., Tucson, AZ 85750 USA
http://www.fortran.com
.
- References:
- Random Numbers
- From: CTallant
- Re: Random Numbers
- From: *** Hendrickson
- Re: Random Numbers
- From: Michael Metcalf
- Re: Random Numbers
- From: kia
- Random Numbers
- Prev by Date: Re: automatic variables are not initialized correctly?
- Next by Date: Re: WRITE, FORMAT problem
- Previous by thread: Re: Random Numbers
- Next by thread: How to Find Memory Used (IVF 9.1, WinXP)
- Index(es):