Re: Random Numbers



kia wrote:

Michael Metcalf wrote:

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.

Relying on error-prone implicit typing is
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
.


Quantcast