re: assigning character strings to double precision values in DATA statements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux