<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
COMO LE PUEDO HACER PARA YA NO RECIBIR MAS ESTOS CORREOS?<BR><BR>
<DIV>
<TABLE id=HB_Mail_Container height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0 UNSELECTABLE="on">
<TBODY>
<TR height="100%" UNSELECTABLE="on" width="100%">
<TD id=HB_Focus_Element vAlign=top width="100%" background="" height=250 UNSELECTABLE="off">              <IMG height=50 src="http://www.letrasanimadas.com/azulcielo/m.gif" width=60><IMG height=50 alt="Letras para el Diseño de Webs" src="http://www.letrasanimadas.com/azulcielo/a.gif" width=50><IMG height=50 src="http://www.letrasanimadas.com/azulcielo/r.gif" width=60><IMG height=50 src="http://www.letrasanimadas.com/azulcielo/y.gif" width=54></TD></TR>
<TR UNSELECTABLE="on" hb_tag="1">
<TD style="FONT-SIZE: 1pt" height=1 UNSELECTABLE="on">
<DIV id=hotbar_promo></DIV></TD></TR></TBODY></TABLE>
<BLOCKQUOTE id=62effb7b>
<DIV>
<TABLE id=HB_Mail_Container height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0 UNSELECTABLE="on">
<TBODY>
<TR height="100%" UNSELECTABLE="on" width="100%">
<TD id=HB_Focus_Element vAlign=top width="100%" background="" height=250 UNSELECTABLE="off">
<P align=center> </P>
<P align=center> </P>
<P align=center> </P></TD></TR>
<TR UNSELECTABLE="on" hb_tag="1">
<TD style="FONT-SIZE: 1pt" height=1 UNSELECTABLE="on">
<DIV id=hotbar_promo></DIV></TD></TR></TBODY></TABLE>
<BLOCKQUOTE id=b09a336e>
<DIV>      <A href="http://imagenes.recursosgratis.com/gif-animados/showphoto.php?photo=1260&password=&sort=1&cat=505&page=2"></A></DIV>
<DIV>             </DIV>
<DIV> </DIV>
<P align=center> </P>
<P align=center> </P>
<P align=center> </P>
<P align=center> </P>
<P align=center> </P>
<P align=center> </P>
<P align=center> </P>
<P align=center> </P>
<P align=center> </P></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR><BR>> Date: Sun, 25 Nov 2007 20:57:18 +0100<BR>> From: FQUINTA@telefonica.net<BR>> To: cconclase@listas.conclase.net<BR>> Subject: Re: [C con Clase] Ficheros en C++<BR>> <BR>> David Reza escribió:<BR>> <BR>> > Los errores:<BR>> ><BR>> > Datos.h:8: error: `ios' has not been declared<BR>> > Datos.h:8: error: `in' undeclared (first use this function)<BR>> > Datos.h:8: error: (Each undeclared identifier is reported only<BR>> > once for each function it appears in.)<BR>> > Datos.h:8: error: `ios' has not been declared<BR>> > Datos.h:8: error: `out' undeclared (first use this function)<BR>> > Datos.h:8: error: `ios' has not been declared<BR>> > Datos.h:8: error: `binary' undeclared (first use this function)<BR>> > Datos.h:9: error: `good' undeclared (first use this function)<BR>> > Datos.h:10: error: `ios' has not been declared<BR>> > Datos.h:10: error: `ios' has not been declared<BR>> > Datos.h:10: error: `ios' has not been declared<BR>> > Datos.h:10: error: `trunc' undeclared (first use this function)<BR>> > Datos.h:10: error: `ios' has not been declared<BR>> > Datos.h:10: error: `open' undeclared (first use this function)<BR>> > Datos.h:11: error: `cout' undeclared (first use this function)<BR>> > Datos.h:11: error: `endl' undeclared (first use this function)<BR>> > Datos.h :12: error: `cin' undeclared (first use this function)<BR>> > FicheroPrueba.cpp: In function `int main()':<BR>> > FicheroPrueba.cpp:33: error: `cout' undeclared (first use this<BR>> > function)<BR>> > FicheroPrueba.cpp:47: error: `endl' undeclared (first use this<BR>> > function)<BR>> > FicheroPrueba.cpp:50: error: `cin' undeclared (first use this<BR>> > function)<BR>> > FicheroPrueba.cpp: In function `int Menu()':<BR>> > FicheroPrueba.cpp:64: error: `cout' undeclared (first use this<BR>> > function)<BR>> > FicheroPrueba.cpp :64: error: `endl' undeclared (first use this<BR>> > function)<BR>> ><BR>> > FicheroPrueba.cpp:71: error: `cin' undeclared (first use this<BR>> > function)<BR>> ><BR>> ><BR>> > Son por que estas utilizando funciones que están declaradas en sus <BR>> > respectivas librerías, pero dichas librerías no las estas incluyendo <BR>> > en tu programa. Por ejemplo la librería 'iostream' que hasta donde sé <BR>> > contiene las declaraciones y definiciones para usar 'cout', 'cin', <BR>> > 'endl'. Para 'ios' me parece que es 'stdio'. Para las demás tu <BR>> > deberías de saber cuáles son si tu creaste el programa. Tal vez sólo <BR>> > se te olvidó.<BR>> ><BR>> > Veo que sí las incluiste dentro del archivo alea.cpp, pero también las <BR>> > utilizas en Datos.h donde no las incluiste. Por eso el error de que en <BR>> > Datos.h, el error 11 es que 'cout' no está declarado:<BR>> ><BR>> > Datos.h:11: error: `cout' undeclared (first use this function)<BR>> ><BR>> ><BR>> > También en FicheroFuente.cpp parece que sólo te falta 'iostream'<BR>> ><BR>> > A falta de tiempo no puedo checar de todo, pero checa bien tu archivo <BR>> > de cabecera Datos.h<BR>> ><BR>> > In file included from FicheroPrueba.cpp:9:<BR>> > Datos.h:6: error: expected class-name before '{' token<BR>> ><BR>> > Datos.h: In constructor `Datos::Datos()':<BR>> > Datos.h:8: error: class `Datos' does not have any field named `fstream'<BR>> ><BR>> > Dice algo de que no estas declarando ningún campo fstream. Supongo que <BR>> > lo que querías hacer era una lista de inicialización de miembros, pero <BR>> > no está correcta, ya que en tu clase no tienes ningún miembro llamado <BR>> > fstream.<BR>> ><BR>> > Aparte estás implementando el constructor Datos(); dentro del <BR>> > encabezado, y aunque se puede hacer es contrario a lo que has estado <BR>> > haciendo, es decir, declararla en un archivo de encabezado y definirla <BR>> > en otro archivo fuente.<BR>> ><BR>> >------------------------------------------------------------------------<BR>> ><BR>> >_______________________________________________<BR>> >Lista de correo Cconclase Cconclase@listas.conclase.net<BR>> >http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net<BR>> >Bajas: http://listas.conclase.net/index.php?gid=2&mnu=FAQ<BR>> ><BR>> Efectivamente David, gracias por tu ayuda. los errores que me da es <BR>> efectivamente porque las definiciones estan en los archivos de cabecera <BR>> iostream , fstream etc pero como muy bien ves ya estan incluidos en el <BR>> fichero que contiene al main es mas, ponga donde ponga el #include <BR>> <fstream> siempre me dice que fstream no es un dato mienbro de datos y <BR>> lo que intento es declara la clase datos como una clase derivada de fstream.<BR>> Si juntas todos los archivos en uno solo veras que es el ejemplo exacto <BR>> de c con clase ficheros de acceso aleatorio y si lo compilas asi <BR>> funciona perfectamente por lo que el problema esta en la distribucion <BR>> del proyecto en archivos independientes. El espacio de nombres no sé <BR>> exactamente donde puedo ponerlo para que no me de errores.<BR>> <BR>> Alguna ayuda por ahi ?????<BR>> Gracias<BR><br /><hr />Connect to the next generation of MSN Messenger   <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline' target='_new'>Get it now! </a></body>
</html>