delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/05/14:04:12

Newsgroups: comp.os.msdos.djgpp
From: Peter Berdeklis <peter AT atmosp DOT physics DOT utoronto DOT ca>
Subject: Re: complex numbers, correct ??
Message-ID: <Pine.SGI.3.91.970902102630.29054B-100000@atmosp.physics.utoronto.ca>
Nntp-Posting-Host: chinook.physics.utoronto.ca
Sender: news AT info DOT physics DOT utoronto DOT ca (System Administrator)
Mime-Version: 1.0
Organization: University of Toronto - Dept. of Physics
In-Reply-To: <5u8stn$lk4$1@news.IAEhv.nl>
Date: Tue, 2 Sep 1997 14:30:09 GMT
References: <5tsl8i$ce$1 AT news DOT IAEhv DOT nl> <Pine DOT SGI DOT 3 DOT 91 DOT 970827160403 DOT 12574A-100000 AT atmosp DOT physics DOT utoronto DOT ca> <3406B175 DOT 35AB AT rug DOT ac DOT be> <Pine DOT SGI DOT 3 DOT 91 DOT 970829111941 DOT 7949B-100000 AT atmosp DOT physics DOT utoronto DOT ca> <5u8stn$lk4$1 AT news DOT IAEhv DOT nl>
Lines: 18
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 30 Aug 1997, Jos Bergervoet wrote:
> It is still not clear to me, whether the complex number syntax will change
> in the near future. Is the gxx-compliant syntax final? Who can reasure me?

The statement:

cout << "Complex number A = " << A;

where a is a complex type is correct according to the current draft C++
standard, so you may assume that the code will work forever (Ooh I hate 
that word :).  The code will print the complex number A in the form 

(real_part_of_A, imag_part_of_A )

---------------
Peter Berdeklis
Dept. of Physics, Univ. of Toronto

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019