Thread: Character Arrays, getline, cin.get...

Character Arrays, getline, cin.get...

From
"Stephane Pinard"
Date:
Hi
I need the code for a function that
- retrieves a string of characters from the user (ex: Hello world!)
- outputs the number of each character, upper or lowercase in this exact format: (using an array)
 
        A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z
        0   0  0   0  1   0  0   1  0 0  0  2   0   0  1   0   0  1   0  0  0   0   1  0   1  1
 
- this is the function declaration (which is called in function main that declares char inString[MAX]....MAX = 81 (global variable))
  void DisplayNumLetters (char inString[])
 
Thank you