SUNIL GUTTA

SUNIL GUTTA

  • NA
  • 1k
  • 393.9k

counting characters & digits ? @text file

Nov 11 2013 12:41 AM
Hi friends

Question is simple and here it goes :) i am looking for a normalized solution :)

Write a C++ program to read the file (irespective of content length i.e 10+ paragraphs ) and count the number of occurrences of each letter (ignore the letter case) and digit found in it.

 For example, if the book had a single line (which is of course not the case in original case): "AaBCcc12" the program would display: A: 2 B: 1 C: 3 1: 1 2: 1

Cheers Ty :) 
Kiran 

Answers (7)