Newsgroups: comp.os.msdos.djgpp From: Peter Berdeklis Subject: Re: complex numbers, correct ?? Message-ID: Nntp-Posting-Host: chinook.physics.utoronto.ca Sender: news AT info DOT physics DOT utoronto DOT ca (System Administrator) Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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> <3406B175 DOT 35AB AT rug DOT ac DOT be> <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 Precedence: bulk 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