comp.lang.ada
 help / color / mirror / Atom feed
From: anon@att.net
Subject: Re: Can I convert a string of letters into an array?
Date: Tue, 6 Mar 2012 07:51:12 +0000 (UTC)
Date: 2012-03-06T07:51:12+00:00	[thread overview]
Message-ID: <jj4flf$kui$3@speranza.aioe.org> (raw)
In-Reply-To: jj4b0f$fj5$1@tornado.tornevall.net

Yes, it possible!

with Ada.Text_IO ;
procedure a is

  A : String ( 1 .. 4 ) ;

  B : Character := 'T' ;
begin
  A := ( 't', 'e', 's', 't' ) ;
  Ada.Text_IO.Put_Line ( A ) ;

  A := ( B, 'e', 's', 't' ) ;
  Ada.Text_IO.Put_Line ( A ) ;
  
end a ;

In <jj4b0f$fj5$1@tornado.tornevall.net>, Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org> writes:
>On 03/05/2012 08:10 PM, Will wrote:
>>
>> Jeff, I am a beginner at Ada, so I have no idea what you mean by that ha ha?
>
>That's OK. It's apparent from your post with the problem statement that you 
>don't want to sort a String anyway.
>
>-- 
>Jeff Carter
>"Sir Lancelot saves Sir Gallahad from almost certain temptation."
>Monty Python & the Holy Grail
>69




  reply	other threads:[~2012-03-06  7:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-06  1:46 Can I convert a string of letters into an array? Will
2012-03-06  2:22 ` Shark8
2012-03-06  2:58 ` Jeffrey Carter
2012-03-06  3:10   ` Will
2012-03-06  4:51     ` John B. Matthews
2012-03-06  5:00       ` John B. Matthews
2012-03-06  6:29     ` Jeffrey Carter
2012-03-06  7:51       ` anon [this message]
2012-03-08  9:48     ` tonyg
2012-03-08 11:30       ` Simon Wright
2012-03-08 13:06         ` mockturtle
2012-03-08 14:04           ` Simon Wright
2012-03-06  3:13 ` Will
2012-03-06  8:29   ` Ludovic Brenta
     [not found]   ` <zLednfMxUtyBtsvSnZ2dnUVZ_oSdnZ2d@earthlink.com>
2012-03-07 10:39     ` Jacob Sparre Andersen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox