Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group