Posts Tagged ‘String’
Read in string and evaluate for word count and letter occurrences
LANGUAGE: C++ CHALLENGE: Write a program that will read in a line of text and output the number of words in the line and the number of occurrences of each letter. Define a word to be any string of letters that is delimited at each end by either a whitespace, a period, a comma, or the…
Read More