[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Bug gcc?



Realmente, un goto rompe toda la filosofía de programación estructurada. No
lo uses, quema la vista.

En cuanto a tu error, creo que ya te han contestado con suficiente claridad,
no obstante quería indicarte que existen herramientas de depuración de
código, que sin duda, te serán útiles en casos como estos. Lease por ejemplo
Valgrind (te hubiera dado el problema instantáneamente).

Un saludo.

> -----Mensaje original-----
> De:	MurDoK [SMTP:murdok.lnx@gmail.com]
> Enviado el:	lunes 4 de julio de 2005 00:20
> Para:	debian-user-spanish@lists.debian.org
> Asunto:	Bug gcc?
> 
> Buenas, hace tiempo que empece a programar en ncurses un juego tipo hundir
> la 
> flota y descubrí que depende de si declaraba la variable "z" en una línea 
> junto a más integers o en otra solo ella, el programa funcionaba o no :| 
> ¿Esto es un fallo mío o del compilador?
> 
> (No hace falta que leáis ni entendáis el código pero es la parte en la que
> la 
> cpu elige donde situar sus barquitos aleatoriamente)
> 
> En el código explico cómo cambiarlo para que funcione y no funcione,
> fijaos en 
> el final, si no funciona las dos ultimas cifras siempre son ceros en vez
> de 
> una letra seguido de un número. Es muy raro :S
> 
> ¿Alguna idea? <<Archivo: bug.c>> 
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------
La información contenida en este correo electrónico es privada y
confidencial. Cualquier uso, modificación, difusión y/o reproducción por
parte de cualquier persona distinta del destinatario está prohibida. Si Vd.
recibe este mensaje por error, por favor bórrelo y comuníquelo al remitente.
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------

This e-mail and any attachments are confidential and intended solely
for the addressee and may also be privileged or exempt from disclosure
under applicable law. If you are not the addressee, or have received
this e-mail in error, please notify the sender immediately, delete it
from your system and do not copy, disclose or otherwise act upon any
part of this e-mail or its attachments..

Internet communications are not guaranteed to be secure or virus-free.
The Barclays Group does not accept responsibility for any loss arising
from unauthorised access to, or interference with, any Internet
communications by any third party, or from the transmission of any
viruses. Replies to this e-mail may be monitored by the Barclays
Group for operational or business reasons..

Any opinion or other information in this e-mail or its attachments
that does not relate to the business of the Barclays Group is personal
to the sender and is not given or endorsed by the Barclays Group.

Barclays Bank PLC.Registered in England and Wales (registered no. 1026167).
Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom.

Barclays Bank PLC is authorised and regulated by the Financial Services Authority.



Reply to: