home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!agate!doc.ic.ac.uk!uknet!mcsun!sunic!dkuug!iesd!iesd.auc.dk!fischer
- From: fischer@iesd.auc.dk (Lars Peter Fischer)
- Newsgroups: comp.lang.c
- Subject: Re: The Correct Way To Write C if-Statements
- Message-ID: <FISCHER.92Nov17034813@steinhaus.iesd.auc.dk>
- Date: 17 Nov 92 03:48:13 GMT
- References: <140742@lll-winken.LLNL.GOV> <9130056@hpavla.lf.hp.com>
- <605@ulogic.UUCP>
- Sender: news@iesd.auc.dk (UseNet News)
- Organization: Mathematics and Computer Science, Aalborg University
- Lines: 22
- In-Reply-To: hartman@ulogic.UUCP's message of 14 Nov 92 23:48:17 GMT
-
-
- >>>>> "Richard" == Richard M. Hartman (hartman@ulogic.UUCP)
-
- Richard> if (!condition)
- Richard> do_something;
-
- Richard> should obviously be written as:
-
- Richard> if ( condition )
- Richard> {
- Richard> }
- Richard> else
- Richard> {
- Richard> do_something;
- Richard> }
-
- Nice if you're being paid per line of code.
-
- /Lars
- --
- Lars Fischer, fischer@iesd.auc.dk | It takes an uncommon mind to think of
- CS Dept., Aalborg Univ., DENMARK. | these things. -- Calvin
-