Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
Parser programming in C
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
arunraj2002in
New Member
Join Date:
Jun 2007
Posts:
22
#1
Parser programming in C
Sep 4 '07, 03:05 PM
i want to write a C program which counts commented line, uncommented line and blank lines .
Basically a parser programming in C?
sicarie
Recognized Expert
Specialist
Join Date:
Nov 2006
Posts:
4677
#2
Sep 4 '07, 03:12 PM
Originally posted by
arunraj2002in
i want to write a C program which counts commented line, uncommented line and blank lines .
Basically a parser programming in C?
That's not a parser program, you just want to count lines.
It's easy: open the file. While !eof getline, increment counter. Close file.
Comment
Post
Cancel
arunraj2002in
New Member
Join Date:
Jun 2007
Posts:
22
#3
Sep 4 '07, 03:20 PM
Originally posted by
sicarie
That's not a parser program, you just want to count lines.
It's easy: open the file. While !eof getline, increment counter. Close file.
It will be helpful if u can give me an idea how to proceed atleast..
Comment
Post
Cancel
sicarie
Recognized Expert
Specialist
Join Date:
Nov 2006
Posts:
4677
#4
Sep 4 '07, 03:20 PM
Originally posted by
arunraj2002in
It will be helpful if u can give me an idea how to proceed atleast..
I did, read it again.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment