🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Romper 2 bucles a la vez en C

#6865
From: Ratzo
Date: Wed, 30 Apr 2003 01:24
22 lines
1577 bytes
Hola a todos

queria preguntarles como hacer para romper la ejecucion de dos bucles a la
vez con break o algo similar en C. Supongamos

switch (numero) {
        case 1:
                if numero > dia {
                        switch (mes) {
                                case enero:
                                        printf ("Primer mes");
                                        break;
                        }
                }
                printf ("Segundo mes");
        break
}

quiero que si entra en el if al ejecutar las sentencias correspondientes
salga tambien del switch principal.

Gracias anticipadas y les mando un saludo
Technical Details
Message-ID: <b8n8kd$bm3re$1@ID-146085.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!dup-200-64-239-62.prodigy.net.MX!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,d2bd500edfc3d6fa,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-04-29 18:24:32 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!dup-200-64-239-62.prodigy.net.MX!not-for-mail
From: Ratzo <ratzo_mx@hotmail.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Romper 2 bucles a la vez en C
Date: Wed, 30 Apr 2003 01:24:25 +0000
Lines: 22
Message-ID: <b8n8kd$bm3re$1@ID-146085.news.dfncis.de>
NNTP-Posting-Host: dup-200-64-239-62.prodigy.net.mx (200.64.239.62)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Trace: fu-berlin.de 1051665870 12259182 200.64.239.62 (16 [146085])
User-Agent: KNode/0.7.2