This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
re: assigning character strings to double precision values in DATAstatements
- From: Bud Davis <bdavis at gcc dot gnu dot org>
- To: gcc-help at gcc dot gnu dot org, yoobb at earthlink dot net
- Date: Fri, 13 Aug 2004 22:11:10 -0500
- Subject: re: assigning character strings to double precision values in DATAstatements
Here is an example using hollerith constants:
$ cat b.f
double precision a(2)
data a /8Hred ,8Hblue /
print '(2A)',a
end
$ g77 b.f
$ ./a.out
red blue
Is this what you need ?
post a small example of the code in question, it will help us understand
exactly what the issue is.
Hope this helps,
bud davis