From: David Rasmussen <pinkfloydhomer@yahoo.com>
Subject: Subtypes with Combined Ranges
Date: Thu, 18 Jul 2002 15:05:35 +0200
Date: 2002-07-18T15:05:35+02:00 [thread overview]
Message-ID: <3D36BD1F.9000101@yahoo.com> (raw)
An Ada-excercise reads as follows:
6.1 Write a program to count the number of occurrences of each letter of
the alphabet typed as input at the keyboard. Using a subtype of
Character as the index subtype of an array is a sensible way to do this.
My first thought was to do this:
subtype Alphabetical is Character range 'A'..'Z' | 'a'..'z';
But I get an error. What is the best type for this excercise?
/David
next reply other threads:[~2002-07-18 13:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-18 13:05 David Rasmussen [this message]
2002-07-18 13:15 ` Subtypes with Combined Ranges Lutz Donnerhacke
2002-07-18 13:44 ` Jacob Sparre Andersen
2002-07-18 14:48 ` David Rasmussen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox