This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]