home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!math.fu-berlin.de!hamel!rene
- From: rene@hamel.uucp (Rene Mueller)
- Subject: Re: The Correct Way To Write C if-Statements
- Message-ID: <2H78QIO@math.fu-berlin.de>
- Sender: rene@hamel (Rene Mueller)
- Organization: Free University of Berlin, Germany
- References: <140742@lll-winken.LLNL.GOV> <1992Nov6.225622.25460@dg-rtp.dg.com> <604@ulogic.UUCP> <aaronk.193.722052372@county.lmt.mn.org> <1992Nov20.093957@gese.ge14.mdadv.gv.at>
- Date: Mon, 23 Nov 1992 22:12:50 GMT
- Lines: 34
-
- In article <1992Nov20.093957@gese.ge14.mdadv.gv.at>, sca@gese.ge14.mdadv.gv.at (Petzi Schweda) writes:
- |>
- |> think you'll end up a little bit messy when using this one inside blocks:
- |>
- |> for (...)
- |> {
- |> if (cond)
- |> {
- |> state;
- |> }
- |> else
- |> {
- |> state2;
- |> }
- |> }
- |>
- |> too much paranthesis in this column, for my taste ...
- |>
- Yeah. But what if you write it this way:
- for(...)
- {
- if(cond)
- {
- statement1;
- }
- else
- {
- statement2;
- }
- }
-
- If you think I have too many <tab>'s use <space> instead...
-
- rene@math.fu-berlin.de
-