Article View: pl.comp.os.linux.programowanie
Article #60162Re: Jak zrobić program obliczający dużą silnię?
From: Piotr Dembiński
Date: Wed, 26 Oct 2005 11:17
Date: Wed, 26 Oct 2005 11:17
21 lines
1562 bytes
1562 bytes
Jacek Popławski <jpopl@interia.pl> writes:
> Zbyszek Malec wrote:
>> for(
>> for(
>> if( cośtam )
>> goto ENDLOOP;
>
> void f()
> {
> for{
> for{
> if (costam)
> return;
> }
>
> dlaczego jest gorsze?
Jak masz taką konstrukcję np. w funkcji obsługi przerwania
w sterowniku, to rozbijanie jej na mniejsze jest raczej niepożądane.
Wtedy się stosuje goto.
Technical Details
Message-ID:
<87acgwil2w.fsf@hector.domek>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<djfrn5$i55$1@nemesis.news.tpi.pl> <dji80k$2a5$2@atlantis.news.tpi.pl> <20051024135514.GA237@siebert> <djij31$st1$1@sunnews.cern.ch> <20051024162624.GA1132@siebert> <djleog$fok$1@nemesis.news.tpi.pl> <1t4bv9mozvw38.12szxw58iqmbp.dlg@40tude.net> <djn9lh$ktl$1@nemesis.news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: Piotr Dembiński <pdemb@gazeta.pl> Newsgroups: pl.comp.os.linux.programowanie Subject: Re: Jak zrobić program obliczający dużą silnię? Date: Wed, 26 Oct 2005 13:17:27 +0200 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 21 Message-ID: <87acgwil2w.fsf@hector.domek> References: <djfrn5$i55$1@nemesis.news.tpi.pl> <dji80k$2a5$2@atlantis.news.tpi.pl> <20051024135514.GA237@siebert> <djij31$st1$1@sunnews.cern.ch> <20051024162624.GA1132@siebert> <djleog$fok$1@nemesis.news.tpi.pl> <1t4bv9mozvw38.12szxw58iqmbp.dlg@40tude.net> <djn9lh$ktl$1@nemesis.news.tpi.pl> NNTP-Posting-Host: dic166.neoplus.adsl.tpnet.pl Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1130325448 2052 83.23.210.166 (26 Oct 2005 11:17:28 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Wed, 26 Oct 2005 11:17:28 +0000 (UTC) Cancel-Lock: sha1:2rMJ5LT7WiD551Jtqj1MyYHKfm8= X-User: pdemb User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit