home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / atari / 8bit / 5961 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.5 KB  |  49 lines

  1. Newsgroups: comp.sys.atari.8bit
  2. Path: sparky!uunet!boulder!ucsu!spot.Colorado.EDU!hill
  3. From: hill@spot.Colorado.EDU (Michael Hill)
  4. Subject: Re: C vs Action!
  5. Message-ID: <1993Jan26.163532.15778@ucsu.Colorado.EDU>
  6. Sender: news@ucsu.Colorado.EDU (USENET News System)
  7. Nntp-Posting-Host: spot.colorado.edu
  8. Organization: University of Colorado, Boulder
  9. References: <cciyXB9w165w@cyberden.sf.ca.us> <1993Jan26.163159.14869@ucsu.Colorado.EDU>
  10. Date: Tue, 26 Jan 1993 16:35:32 GMT
  11. Lines: 36
  12.  
  13. In article <1993Jan26.163159.14869@ucsu.Colorado.EDU> hill@spot.Colorado.EDU
  14. (Michael Hill) writes:
  15. >
  16. >#define then {
  17. >#define endif }
  18. >
  19. >main () {
  20. >    .
  21. >    .
  22. >    .
  23. >  if (h < 1) then h = 1
  24. >  endif
  25. >    .
  26. >    .
  27. >    .
  28. >}
  29.  
  30. Oops.  Left off a semi at the end of the if line.  Alternatively, you
  31. could:
  32.  
  33. #define endif ;}
  34.  
  35. so you could write your code as I originally posted it.  Which just goes
  36. to prove that C is more flexible than "you have to do it this way and
  37. this one way only!"
  38.  
  39.             --Michael
  40.  
  41. -------------------------------------------------------------------------------
  42. Michael Hill   <><  Isaiah 9:6 | "Let's not pretend to justify
  43. hill@spot.Colorado.EDU         |  Rather amend where treasures lie
  44.                                |  Straight through the heart peace can be found
  45. University of Colorado@Boulder |  That's where you start, not all around"
  46. $ mv net.flames /dev/null      |                    -- Extreme, "Rest in Peace"
  47. -------------------------My boss is a Jewish carpenter!------------------------
  48. Did you ever notice that everybody in favor of abortion has already been born?!
  49.