| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:7648 |
| From: | weiqigao AT crl DOT com (Weiqi Gao) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: STL complex |
| Date: | Mon, 19 Aug 1996 21:19:14 GMT |
| Organization: | CRL Dialup Internet Access |
| Lines: | 27 |
| Message-ID: | <4valp2$8oj@nntp.crl.com> |
| References: | <3218A0AA DOT 609 AT image DOT dk> |
| NNTP-Posting-Host: | crl4.crl.com |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Søren Merser <merser AT image DOT dk> wrote:
>What's wrong. this code won't compile
>#include<iostream.h>
>#include<complex.h>
>int main()
>{
>complex c(1.1, 2.2);
>cout << c << endl;
>return;
>}
>The complier give following error message:
> `complex´ is undeclared
You are supposed to say
complex<double> c(1.1, 2.2);
instead of
complex c(1.1, 2.2);
--
Weiqi Gao
weiqigao AT crl DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |