Article View: es.comp.os.linux.programacion
Article #14062Expediente X
From: Hugo Garcia Alonso
Date: Sun, 17 Dec 2000 13:01
Date: Sun, 17 Dec 2000 13:01
48 lines
2208 bytes
2208 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hola a todos, os mando este pequenyo esqueleto de programa para ver
si alguien puede ver por que con el cc se niega a compilar, mientras
que con el g++ compila sin problemas.
Muchas gracias por la ayuda desinteresada
Saludos
#include <stdio.h>
#define TAM (1024/sizeof(int)-2) /*Numero de enteros en la cola*/
int array[TAM];
int meter = 0;
int sacar = 0;
int almacenar(int valor)
{
}
int recuperar(void)
{
}
int main()
{
printf("Al intentar sacar algo estando vacia dio %d\n", recuperar());
printf("Meto del 0 al 9\n");
int i;
for(i=0; i<10; i++)
if(!almacenar(i)) printf("Error al insertar el valor %d\n", i);
printf("El primer elemento es %d\n", recuperar());
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1e-SuSE (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE6PDe7znOLumltoeoRAmygAJ485waLkDY2ldUeaQKAX2x7Iuh7wwCeNQSk
9XNFdtnHSJjjiuwRe38j3fw=
=N8Cj
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<3a3cc231@filemon.telecable.es>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!news.bt.es!filemon.telecable.es!ppp00269.telecable.esShow Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit X-Google-Thread: f86c8,b243c6db34cbd77e,start X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2000-12-17 05:41:19 PST From: "Hugo Garcia Alonso" <hugogar@QUITA_ESTO.netcom.atodavela.com> Newsgroups: es.comp.os.linux.programacion Subject: Expediente X Date: Sun, 17 Dec 2000 14:01:29 +0100 Organization: BT Tel. Netnews service (readers) Lines: 51 Message-ID: <3a3cc231@filemon.telecable.es> NNTP-Posting-Host: filemon.telecable.es Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: titan.bt.es 977060339 21583 212.89.0.4 (17 Dec 2000 13:38:59 GMT) X-Complaints-To: abuse@bt.es NNTP-Posting-Date: 17 Dec 2000 13:38:59 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Original-NNTP-Posting-Host: ppp00269.telecable.es Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!news.bt.es!filemon.telecable.es!ppp00269.telecable.es