From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: C++, complex, etc Date: Mon, 15 May 2000 04:51:16 +0400 Organization: MTU-Intel ISP Lines: 31 Message-ID: <391F4A04.176163E5@mtu-net.ru> References: <391F1402 DOT 31B7D4A6 AT mtu-net DOT ru> NNTP-Posting-Host: ppp100-61.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 958351856 56491 212.188.100.61 (15 May 2000 00:50:56 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 15 May 2000 00:50:56 GMT X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: ru,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Yours compiles. Do I always have to specify actual type of real and imaginary parts of a complex number that way, e.g. //? bye. Alexei A. Frounze ----------------------------------------- Homepage: http://alexfru.chat.ru Mirror: http://members.xoom.com/alexfru Jason Green wrote: > > "Alexei A. Frounze" wrote: > > > The same source compiles under Borland C++. That means the source is okay. > > That just means Borland C++ is happy to accept non-standard code. > > Try this: > > #include > #include > using namespace std; > > int main(void) { > complex j(0,1); > > cout << "hello world!\n"; > return 0; > }