Character Arrays, getline, cin.get... - Mailing list pgsql-novice

From Stephane Pinard
Subject Character Arrays, getline, cin.get...
Date
Msg-id 000c01c1c52d$e7680a40$96b29c18@supermang
Whole thread Raw
List pgsql-novice
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

pgsql-novice by date:

Previous
From: Faudzy Sulaiman
Date:
Subject: Postmaster with -i
Next
From: "Yannick ALLUSSE"
Date:
Subject: Size of the empty database