J
jason_box
I'm alittle new at C and I'm trying to write a simple program that will
record the frequency of words and just print it out. It is suppose to
take stdin and I heard it's only a few lines but I'm not sure where to
start.
The only example I have to work with is if you ran the program say:
File list contains:
This is a test.
% test < list
10 1
32 3
46 1
84 1
97 1
101 1
104 1
105 2
115 3
116 2
It just checks for the characters and converts it to the ascci value
and number of occurrences and just uses a simple space or tab. I think
someone said that it shouldn't take more than 10-15 lines but I haven't
tried yet. Thank you time.
record the frequency of words and just print it out. It is suppose to
take stdin and I heard it's only a few lines but I'm not sure where to
start.
The only example I have to work with is if you ran the program say:
File list contains:
This is a test.
% test < list
10 1
32 3
46 1
84 1
97 1
101 1
104 1
105 2
115 3
116 2
It just checks for the characters and converts it to the ascci value
and number of occurrences and just uses a simple space or tab. I think
someone said that it shouldn't take more than 10-15 lines but I haven't
tried yet. Thank you time.