C++ program...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pchahar
    New Member
    • Dec 2006
    • 9

    C++ program...

    Write a program to process a text file. The program will determine how many unique words there are in the text file that begin with each letter of the alphabet. The text file name will be given as a command line argument to the program.


    Sample Output:
    4 words beginning with 'a'/'A':
    a, also, and, always
    2 words beginning with 'b'/'B':
    be, both
    :
    0 words beginning with 'z'/'Z'

    Letter with that began the most words was 'a'/'A'
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Originally posted by pchahar
    Write a program to process a text file. The program will determine how many unique words there are in the text file that begin with each letter of the alphabet. The text file name will be given as a command line argument to the program.


    Sample Output:
    4 words beginning with 'a'/'A':
    a, also, and, always
    2 words beginning with 'b'/'B':
    be, both
    :
    0 words beginning with 'z'/'Z'

    Letter with that began the most words was 'a'/'A'
    do you have a question?

    Comment

    Working...