Character Arrays, getline, cin.get...

From: "Stephane Pinard" <espee22(at)rogers(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: Character Arrays, getline, cin.get...
Date: 2002-03-06 16:42:28
Message-ID: 000c01c1c52d$e7680a40$96b29c18@supermang
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2002-03-06 17:09:14 Re: referential integrity for insert
Previous Message Ugly Hippo 2002-03-06 16:36:29 pg equivalent to MS SQL exec command