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