delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/21/10:15:23

From: Charles Krug <charles AT pentek DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Newbie questions
Date: Wed, 21 Jan 1998 09:43:47 -0500
Lines: 29
Message-ID: <34C609A2.7970903E@pentek.com>
References: <6a391k$896$1 AT talia DOT mad DOT ibernet DOT es>
NNTP-Posting-Host: mail.pentek.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Inyaki Rodrguez wrote:

> Hi, I'm a newbie with C++ and I want to work with class Complex but I have
> some questions.
> I had write this sample program:
>
> #include <iostream.h>
> #include <complex.h>

You are including complex.h, which is the C++ std library header.  This is
complex<T>, where T is any class that has the correct operations.

What you seem to be after is the GNU Complex class, which is in <_complex.h>.
The leading underscore is a workaround for DOS's inability to distinguish case
in file names.  Any file that would have a leading capital letter is given an
underscore instead.


> How can I compile it?
>
> Thanks,
> Inyaki



--
Charles Krug, Jr.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019