| delorie.com/archives/browse.cgi | search |
| From: | Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: C++, complex, etc |
| Date: | Mon, 15 May 2000 01:12:42 +0100 |
| Organization: | Customer of Planet Online |
| Lines: | 18 |
| Message-ID: | <bqfuhso38mddrcom1noc240qjdj1fa4s5i@4ax.com> |
| References: | <391F1402 DOT 31B7D4A6 AT mtu-net DOT ru> |
| NNTP-Posting-Host: | modem-29.elmiron.dialup.pol.co.uk |
| Mime-Version: | 1.0 |
| X-Trace: | news6.svr.pol.co.uk 958349619 1853 62.136.92.29 (15 May 2000 00:13:39 GMT) |
| NNTP-Posting-Date: | 15 May 2000 00:13:39 GMT |
| X-Complaints-To: | abuse AT theplanet DOT net |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
"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 |