home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.8bit
- Path: sparky!uunet!boulder!ucsu!spot.Colorado.EDU!hill
- From: hill@spot.Colorado.EDU (Michael Hill)
- Subject: Re: C vs Action!
- Message-ID: <1993Jan26.163532.15778@ucsu.Colorado.EDU>
- Sender: news@ucsu.Colorado.EDU (USENET News System)
- Nntp-Posting-Host: spot.colorado.edu
- Organization: University of Colorado, Boulder
- References: <cciyXB9w165w@cyberden.sf.ca.us> <1993Jan26.163159.14869@ucsu.Colorado.EDU>
- Date: Tue, 26 Jan 1993 16:35:32 GMT
- Lines: 36
-
- In article <1993Jan26.163159.14869@ucsu.Colorado.EDU> hill@spot.Colorado.EDU
- (Michael Hill) writes:
- >
- >#define then {
- >#define endif }
- >
- >main () {
- > .
- > .
- > .
- > if (h < 1) then h = 1
- > endif
- > .
- > .
- > .
- >}
-
- Oops. Left off a semi at the end of the if line. Alternatively, you
- could:
-
- #define endif ;}
-
- so you could write your code as I originally posted it. Which just goes
- to prove that C is more flexible than "you have to do it this way and
- this one way only!"
-
- --Michael
-
- -------------------------------------------------------------------------------
- Michael Hill <>< Isaiah 9:6 | "Let's not pretend to justify
- hill@spot.Colorado.EDU | Rather amend where treasures lie
- | Straight through the heart peace can be found
- University of Colorado@Boulder | That's where you start, not all around"
- $ mv net.flames /dev/null | -- Extreme, "Rest in Peace"
- -------------------------My boss is a Jewish carpenter!------------------------
- Did you ever notice that everybody in favor of abortion has already been born?!
-