[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Complex.h



--- Mikael Rasmussen <sslug@sslug> wrote:
> Hejsa C-Slugger
> 
> Jeg ved ikke om der er liv her på listen men
> jeg prøver.
> 
> Jeg skal bruge complexe tal i et c++ program
> jeg har Noget der minder om flg.(frit fra huk.):
> 
> #include <complex.h>
> #include <stdio.h>
> 
> main () {
> complex comp_tal(1,5);
> printf ("comp. tal = (%g+%gi)", real(comp_tal), imag(comp_tal));
> }
> 
> Problemet er at den ikke kan finde biblioteket
> "complex.h"
> Måske er min bog for gammel (T.Glaven C++ prog. 1992) og
> biblioteket flyttet??

Kan du ikke bare lave din egen Complex klasse (incl. overloadninger), det har jeg gjort?
Jeg kan evt. sende en kopi?
Så vidt jeg ved er det det kun i Fortran og andre videnskabelige pogrammeringssprog der har den
slags som default typer.

-sune


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *