| www.delorie.com/archives/browse.cgi | search |
| From: | "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru> |
| 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> <bqfuhso38mddrcom1noc240qjdj1fa4s5i AT 4ax DOT com> |
| NNTP-Posting-Host: | ppp100-61.dialup.mtu-net.ru |
| Mime-Version: | 1.0 |
| 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. <float>/<double>/<long
double>?
bye.
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror: http://members.xoom.com/alexfru
Jason Green wrote:
>
> "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru> 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 <iostream>
> #include <complex>
> using namespace std;
>
> int main(void) {
> complex<float> j(0,1);
>
> cout << "hello world!\n";
> return 0;
> }
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |