home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12416 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1003 b 

  1. Path: sparky!uunet!news.univie.ac.at!alijku11!k3006e7
  2. Organization: Johannes Kepler University Linz - Computing Center
  3. Date: Monday, 17 Aug 1992 14:12:40 CDT
  4. From: <K3006E7@ALIJKU11.BITNET>
  5. Message-ID: <92230.141240K3006E7@ALIJKU11.BITNET>
  6. Newsgroups: comp.lang.c++
  7. Subject: Que: Double-Precision Complex Arrays
  8. Lines: 18
  9.  
  10. I am new to C++, so please forgive me if these questions are
  11. irritatingly elementary.  But if anyone would offer suggestions
  12. or answers, I would greatly appreciate it!
  13.  
  14. 1) In my program, I have included <complex.h> that comes with
  15. the C++ package.  But when I try to create an array of complex
  16. numbers, the compiler issues an error.  How does one declare a
  17. complex array?
  18.  
  19. static complex array_name[2][2];
  20.  
  21. doesn't work, for example.
  22.  
  23. 2) How does one declare double precision complex numbers?  And
  24. double precision complex arrays?  Does one have to fiddle with
  25. the complex.h file itself in order to get double precision?
  26.  
  27. Any help would be really appreciated.  Thanks, Myron Seto
  28.