From: Georg Bauhaus <rm.plus-bug.tsoh@maps.futureapps.de>
Subject: Re: Converting Type Characters to type string
Date: Sun, 30 Mar 2008 23:48:32 +0200
Date: 2008-03-30T23:48:32+02:00 [thread overview]
Message-ID: <1206913712.22025.8.camel@K72> (raw)
In-Reply-To: <f1d8e1ab-b79b-4705-9093-82f75a5dc643@k13g2000hse.googlegroups.com> <45128c93-6001-47bd-9feb-d82ac04a5515@k13g2000hse.googlegroups.com> <47EFF5DF.401@obry.net> <f1d8e1ab-b79b-4705-9093-82f75a5dc643@k13g2000hse.googlegroups.com>
On Sun, 2008-03-30 at 14:08 -0700, jedivaughn wrote:
> number 1 thank you so much for the fast response. But when I try your
> suggestion and use say "1234" for the input I get the number 1, a few
> spaces, and then some smiley faces. not exactly what I was hoping
> for :) . Here's my code if that's any help.
Do I understand correctly that you want "1234" to be 4 integers?
In that case there is a loop missing.
> with ada.text_IO, ada.integer_text_IO;
>
> procedure integers is
>
> index : natural :=0;
> char : character;
> str : string (1..10);
str : string (1..10) := (1..10 => '*'); -- to see the effect
> begin
>
> ada.text_IO.put("Please enter a few Integers ");
> ada.text_IO.get(char);
>
> Index := Index + 1;
> Str(Index) := Char;
> ada.text_IO.put(str);
>
> end integers;
>
>
>
> Once again thanks so much for your help
> - John
next prev parent reply other threads:[~2008-03-30 21:48 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-30 20:04 Converting Type Characters to type string jedivaughn
2008-03-30 20:19 ` Pascal Obry
2008-03-30 21:08 ` jedivaughn
2008-03-30 21:28 ` jimmaureenrogers
2008-03-30 21:38 ` Ludovic Brenta
2008-03-30 21:48 ` Georg Bauhaus [this message]
2008-03-30 23:52 ` jedivaughn
2008-03-31 3:04 ` george.priv
2008-03-31 4:00 ` tmoran
2008-03-31 8:54 ` Ludovic Brenta
2008-03-31 9:59 ` Dmitry A. Kazakov
2008-03-31 10:59 ` Jean-Pierre Rosen
2008-03-31 13:50 ` jedivaughn
2008-03-31 14:11 ` Ludovic Brenta
2008-03-31 14:21 ` Dmitry A. Kazakov
2008-03-31 14:44 ` jedivaughn
2008-03-31 15:41 ` Adam Beneschan
2008-03-31 20:26 ` Maciej Sobczak
2008-03-31 22:06 ` Georg Bauhaus
2008-03-31 22:33 ` Adam Beneschan
2008-04-01 1:00 ` jedivaughn
2008-04-01 5:34 ` Simon Wright
2008-04-01 11:22 ` jedivaughn
2008-04-01 12:00 ` jimmaureenrogers
2008-04-01 13:22 ` jedivaughn
2008-04-01 17:03 ` Adam Beneschan
2008-04-01 21:11 ` Simon Wright
2008-04-01 22:22 ` jedivaughn
2008-04-03 5:54 ` tmoran
2008-04-03 14:38 ` Adam Beneschan
2008-04-01 16:58 ` Adam Beneschan
2008-03-31 15:45 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox