<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Holas !!</DIV>
<DIV> </DIV>
<DIV>el NEW  and DELETE pertenecen unicamente a C++</DIV>
<DIV> </DIV>
<DIV>para la asignacion de memoria dinamica, en C, usa las funciones, </DIV>
<DIV> </DIV>
<DIV>malloc()</DIV>
<DIV> </DIV>
<DIV>y para liberar la memoria</DIV>
<DIV>free()</DIV>
<DIV> </DIV>
<DIV>dale una checada a este ejemplo:</DIV>
<DIV><A href="http://www.captain.at/howto-c-code-malloc-struct.php">http://www.captain.at/howto-c-code-malloc-struct.php</A></DIV>
<DIV> </DIV>
<DIV>documentacion</DIV>
<DIV><A href="http://www.opengroup.org/onlinepubs/009695399/functions/malloc.html">http://www.opengroup.org/onlinepubs/009695399/functions/malloc.html</A></DIV>
<DIV><A href="http://publications.gbdirect.co.uk/c_book/chapter5/sizeof_and_malloc.html">http://publications.gbdirect.co.uk/c_book/chapter5/sizeof_and_malloc.html</A></DIV>
<DIV> </DIV>
<DIV>recibe un saludo.<BR></DIV>
<DIV align=left>
<DIV align=left><FONT face=com color=#0000ff><STRONG><EM>ATTE:<BR>ISC Edmundo Cuadriello Narvaez<BR>Software Engineer</EM></STRONG></FONT></DIV>
<DIV align=left><STRONG><EM><FONT color=#4040ff>C++, X++, C#, JAVA programmer.</FONT></EM></STRONG></DIV>
<DIV align=left><STRONG><EM><FONT color=#4040ff>Tel: 33-36899320</FONT></EM></STRONG></DIV>
<DIV align=left><STRONG><EM><FONT color=#4040ff>Cel: 33-13555312</FONT></EM></STRONG></DIV></DIV>
<DIV align=left>
<DIV align=left><FONT face=com color=#0000ff><STRONG><EM><A href="mailto:ecnarvaez@yahoo.com" target=_blank rel=nofollow>ecnarvaez@yahoo.com</A></EM></STRONG></FONT></DIV>
<DIV align=left><STRONG><EM><FONT color=#0000ff><A href="mailto:ecnarvaez@hotmail.com" target=_blank rel=nofollow>ecnarvaez@hotmail.com</A></FONT></EM></STRONG></DIV>
<DIV align=left><FONT face=com color=#0000ff><STRONG><EM>"All for Linux, and Linux for every one"</EM></STRONG></FONT></DIV></DIV><BR><BR>--- El <B>mié 18-feb-09, Jennifer Càrdenas Meneses <I><survivor_woman19@hotmail.com></I></B> escribió:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">De:: Jennifer Càrdenas Meneses <survivor_woman19@hotmail.com><BR>Asunto: Re: [C con Clase] pregunta rapidísima de contestar<BR>A: cconclase@listas.conclase.net<BR>Fecha: miércoles, 18 febrero, 2009, 11:38 pm<BR><BR>
<DIV id=yiv1505619923>
<STYLE>
#yiv1505619923 .hmmessage P
{
margin:0px;padding:0px;}
#yiv1505619923 {
font-size:10pt;font-family:Verdana;}
</STYLE>
Cuando tengas ese tipo de dudas, te doy un super consejo, asi uses linux o windows.<BR>Primero ke nada, asegurate de ke tus archivos tengan la extencion .c (archivo.c).<BR> <BR>Genera un archivo.c, para hacer una prueba, has algun programa en el ke uses el operador new, algo ke sea chikito, es solo para probar si compila. Si compila, es ke es un operador de c y sino compila, es ke es un operador de c++.<BR>Recuerda ke los archivos de c++ tienen la extencion .cpp.<BR> <BR>Espero ke te ayude<BR>saludos<BR><BR><BR>
<P align=center><SPAN><SPAN><FONT face="Times New Roman, Times, Serif" size=4><SPAN><SPAN><FONT face=Samarkan size=7><FONT size=6><FONT face="monotype corsiva" size=4><FONT face="Geneva, Arial, Sans-serif" size=4><SPAN><FONT face="Times New Roman" color=#ff00ff size=5><EM><STRONG></STRONG></EM></FONT></SPAN></FONT></FONT></FONT></FONT></SPAN></SPAN></FONT></SPAN></SPAN>  </DIV>
<P align=center><SPAN><SPAN><STRONG><EM><FONT face="Times New Roman" color=#ff6600 size=4></FONT></EM></STRONG></SPAN></SPAN> </DIV>
<P align=center><SPAN><SPAN><STRONG><EM><FONT face="Lucida Handwriting, Cursiva" color=#ff99cc size=5>Solo mueren aquellos que no han tenido tiempo de volverse inmortales</FONT></EM></STRONG></SPAN></SPAN><IMG style="WIDTH: 28px; HEIGHT: 25px" height=227 src="http://gfx1.hotmail.com/mail/w2/emoticons/rose.gif" width=201> </DIV><BR><BR><BR>  <BR>
<HR id=stopSpelling>
From: cjvr187@hotmail.com<BR>To: cconclase@listas.conclase.net<BR>Date: Wed, 18 Feb 2009 10:30:02 -0400<BR>Subject: Re: [C con Clase] pregunta rapidísima de contestar<BR><BR>
<STYLE>
#yiv1505619923 .ExternalClass .EC_hmmessage P
{padding:0px;}
#yiv1505619923 .ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
<BR>Uhm, Coke estás errado porque new se utiliza en C++ para asignar memoria dinámica. Claro está que a los objetos se les instancia con new también.<BR>Y bueno, está demás, pero como ya todos han dicho new es un operador de C++.<BR><SPAN style="FONT-WEIGHT: bold">Charli J. Vívenes Rengel.</SPAN><SPAN style="FONT-WEIGHT: bold"><BR>Lic. en Informática.</SPAN><BR style="FONT-WEIGHT: bold"><SPAN style="FONT-WEIGHT: bold">Universidad de Oriente, Núcleo de Sucre. Cumaná. Venezuela.</SPAN><BR><BR>Por favor, evite enviarme documentos adjuntos en formato Word o PowerPoint.<BR>Lea <A rel=nofollow>http://www.gnu.org/philosophy/no-word-attachments.es.html</A><BR><BR><BR><BR><BR> <BR>
<HR id=EC_stopSpelling>
Date: Fri, 13 Feb 2009 17:54:27 -0300<BR>From: cokejordan@gmail.com<BR>To: cconclase@listas.conclase.net<BR>Subject: Re: [C con Clase] pregunta rapidísima de contestar<BR><BR>segun entiendo C++ es un lenguaje orientado a objetos, C es un lenguaje estructurado, y new es un metodo para iniciar un nuevo objeto, por lo tanto a mi parecer es una funcion netamente de C++<BR><BR><BR>saludos<BR><BR>
<DIV class=EC_EC_gmail_quote>2009/2/13 Núria Busom Figueres <SPAN dir=ltr><<A rel=nofollow>meteorit666@hotmail.com</A>></SPAN><BR>
<BLOCKQUOTE class=EC_EC_gmail_quote style="PADDING-LEFT: 1ex">
<DIV>Hola a todos, tengo una duda muy muy rapida de contestar.<BR><BR><FONT style="FONT-SIZE: 24pt" color=#ff0000 size=6><B>"new" es de C o de C++?? </B></FONT>Es muy importante pq estoy haciendo una practica en C y penalizan el uso de funciones de C++<BR><BR>He encon trado 20000 sitios donde explican cómo usar "new" pero en ningun sitio especifican si es de C o C++<BR>Muchísimas gracias<BR><BR>
<HR>
Tienes un nuevo Messenger por descubrir. <A rel=nofollow>¡Descárgatelo! </A></DIV><BR>_______________________________________________<BR>Lista de correo Cconclase <A rel=nofollow>Cconclase@listas.conclase.net</A><BR><A rel=nofollow>http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net</A><BR>Bajas: <A rel=nofollow>http://listas.conclase.net/index.php?gid=2&mnu=FAQ</A><BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>"Podran criticarme por fallar... pero no por dejar de intentarlo"<BR><BR>
<HR>
Explore the seven wonders of the world <A rel=nofollow>Learn more!</A><BR>
<HR>
Madonna, Avril Lavigne, Maroon 5 y muchos más, En Vivo, sólo por <A href="http://video.msn.com/video.aspx?mkt=es-mx" target=_blank rel=nofollow>Prodigy/MSN en concierto.</A> </DIV><PRE>_______________________________________________
Lista de correo Cconclase Cconclase@listas.conclase.net
http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net
Bajas: http://listas.conclase.net/index.php?gid=2&mnu=FAQ</PRE></BLOCKQUOTE></td></tr></table><br>__________________________________________________<br>Correo Yahoo!<br>Espacio para todos tus mensajes, antivirus y antispam ¡gratis! <br>Regístrate ya - http://correo.yahoo.com.mx/