home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18779 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!acd4!HDFS1!jbii
  3. From: jbii@HDFS1.acd.com ( John O. Bell II )
  4. Subject: Re: HELP!
  5. Message-ID: <1992Dec22.153057.8044@acd4.acd.com>
  6. Summary: uh huh...
  7. Keywords: help c
  8. Sender: jbii@hdfs1.acd.com
  9. Organization: Applied Computing Devices, Inc., Terre Haute IN
  10. References: <Bz18KA.MCv@access.digex.com> <1992Dec17.220516.7049@thunder.mcrcim.mcgill.edu>
  11. Distribution: na
  12. Date: Tue, 22 Dec 1992 15:30:57 GMT
  13. Lines: 25
  14.  
  15. In article <1992Dec17.220516.7049@thunder.mcrcim.mcgill.edu> mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
  16. >In article <Bz18KA.MCv@access.digex.com>, jhurwitz@access.digex.com (j. hurwitz) writes:
  17. >
  18. >> //programm to read a C source file and verify # of left to right braces
  19. >>    while ((ch =getc(fptr)) !=EOF)      //gets chars
  20. >
  21. >This program may read C code, but it's not written in C; those double
  22. >slashes are syntax errors in C.  You'd probably be better off asking in
  23. >a group appropriate for whatever language it is written in.
  24.  
  25. To J. Hurwitz:
  26.  
  27. Try changing your comments to: 
  28.  
  29. /* put your comment here */
  30.  
  31. Your comments are currently set up for C++. Note that C++ supports both
  32. comment syntax methods, so these lines _should_ compile on both C/C++.
  33.  
  34. John Bell
  35. Applied Computing Devices, Inc.
  36. jbii@hdfs1.acd.com
  37.  
  38. P.S. The above statement does not support either language as better. If you
  39.      think that's the case, that's _your_ problem (take a valium).
  40.