🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12130

Re: Problemas fichero Complex.h

#12130
From: Salvador
Date: Thu, 30 Aug 2001 08:25
59 lines
2836 bytes
In article <3b8d8489_4@news.arrakis.es>,
   "Fco. Javier Espejo" <jespejoYASABES@QUEHACERarrakis.es> wrote:
>> public:
>> // Constructores
>> complex n[2];  // 340
>>
>
>Cambia a
>
>Complex n[2]; //340
>
>te deben desaparecer todos los errores.
>

Ese peque�o error se me ha colado porque me puse a hacer pruebas a ver si 
funcionaba. Pero en ese caso tampoco iba ya que en las lineas siguientes tengo 
las declaraciones con Complex, y tambi�n daban un error.

Estuve el otro dia buscando en Internet y encontre un Complex.h que era igual 
al que tengo en mi sistema en min�scula(complex.h) pero con la siguiente 
linea.

typedef complex<double> Complex;

Lo copie e hice pruebas y no me dio estos errores sino que, creo yo, empezo a 
compilar lo que produjo ya otra grupo de errores mayor. 
Estos creo que estos son por problemas de retrocompatibilidad . Os muestro 
algunos de ellos para ver si es as� o son debido a otras cosas. Es una peque�a 
muestra para no marear.


///////////////////////
Errores:

algebra.cpp:309: syntax error before `::'
algebra.cpp:311: syntax error before `::'
algebra.cpp:312: ANSI C++ forbids declaration `v' with no type
algebra.cpp:312: `v1' was not declared in this scope
algebra.cpp:312: ANSI C++ forbids declaration `v' with no type
algebra.cpp:312: conflicting types for `int v[2]'
algebra.cpp:312: previous declaration as `int v[1]'
algebra.cpp:312: `v2' was not declared in this scope
algebra.cpp:312: parse error before `}'
algebra.cpp:314: syntax error before `::'
algebra.cpp:317: syntax error before `::'

La linea de c�digo que provoca esto es :

Matriz::Matriz(){}
Matriz::Matriz (const Vector& v1, const Vector& v2, const Vector& v3)//311
		{v[0]=v1; v[1]=v2; v[3]=v3} //312

Muchas Gracias por la ayuda.

Saludos

Salva

PD: Si hace falta mas c�digo, lo postear� en otro mensaje.
Technical Details
Message-ID: <9mkt9l$2pl$1@polaris.cc.upv.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!news.rediris.es!news.uv.es!news.upv.es!instrume09
References: <9md7cd$vrf$1@polaris.cc.upv.es> <3b8d8489_4@news.arrakis.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,10409e0b96e916a7
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-08-30 01:37:54 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!news.rediris.es!news.uv.es!news.upv.es!instrume09
From: salause@teleco.upv.es (Salvador)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Problemas fichero Complex.h
Date: 30 Aug 2001 08:25:25 GMT
Organization: UPV
Lines: 59
Message-ID: <9mkt9l$2pl$1@polaris.cc.upv.es>
References: <9md7cd$vrf$1@polaris.cc.upv.es> <3b8d8489_4@news.arrakis.es>
NNTP-Posting-Host: ins09.gnd.upv.es
X-Trace: polaris.cc.upv.es 999159925 2869 158.42.149.109 (30 Aug 2001 08:25:25 GMT)
X-Complaints-To: newsmaster@upv.es
NNTP-Posting-Date: 30 Aug 2001 08:25:25 GMT
X-Newsreader: NoticiasUPV Version 1.0 Beta #3