home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12421 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.0 KB  |  27 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!wupost!m.cs.uiuc.edu!sunb10.cs.uiuc.edu!sparc6.cs.uiuc.edu!pjl
  3. From: pjl@sparc6.cs.uiuc.edu (Paul Lucas)
  4. Subject: Re: Question: Complex Arrays
  5. Message-ID: <1992Aug17.140946.9035@sunb10.cs.uiuc.edu>
  6. Sender: news@sunb10.cs.uiuc.edu
  7. Organization: University of Illinois at Urbana-Champaign
  8. References: <92230.130533K3006E7@ALIJKU11.BITNET>
  9. Date: Mon, 17 Aug 1992 14:09:46 GMT
  10. Lines: 15
  11.  
  12. In <92230.130533K3006E7@ALIJKU11.BITNET> <K3006E7@ALIJKU11.BITNET> writes:
  13.  
  14. >I am new to C++ so please forgive me if these questions are irritatingly
  15. >elementary.  But if anyone could offer suggestions or answers, I would
  16. >greatly appreciate it!
  17.  
  18. >In my program, I already have included <complex.h> that comes with
  19. >the C++ package.  But when I try to create an array of complex numbers,
  20. >the compiler issues an error.  How does one declare a complex array?
  21.  
  22.     complex foo[4];
  23. -- 
  24.     - Paul J. Lucas                University of Illinois    
  25.       AT&T Bell Laboratories        at Urbana-Champaign
  26.       Naperville, IL            pjl@cs.uiuc.edu
  27.