Write, compile, run and test a C++ program called wordcount.cpp which will work like the UNIX wc
program, only lots better.The output of your program should be labeled
(say which count is is which) with the results in the order listed
below.
Try to find as many of these as you can:
Try to find as many of these as you can:
- The total number of lines (easy),
- characters (really easy),
- words (a bit difficult),
- sentences (moderately painful),
- alphabetic characters (fairly easy),
- vowels (you've done this by now),
- syllables (quite difficult),
- average number of words per sentence,
- average number of syllables per word,
- and average number of letters per word.
0 comments:
Post a Comment