comp.lang.ada
 help / color / mirror / Atom feed
From: "isaac2004" <isaac_2004@yahoo.com>
Subject: Re: help with string splitting
Date: 8 Mar 2006 21:54:09 -0800
Date: 2006-03-08T21:54:09-08:00	[thread overview]
Message-ID: <1141883649.513514.212680@p10g2000cwp.googlegroups.com> (raw)
In-Reply-To: <4jMPf.4128$6I.3573@newsread3.news.pas.earthlink.net>

First_Half_Index  : Positive := 1;
Second_Half_Index :  Positive := 2;


>for Code_Index in Codetext'Length loop
  >  if Code_Index <= Codetext'Length / 2 then
 >      Plaintext(First_Half_index) := Codetext(Code_Index);
>       First_Half_Index := First_Half_Index + 2;
>    else
>       Plaintext(Second_Half_Index) := Codetext(Code_Index);
>        Second_Half_Index := Second_Half_Index + 2;
>   end if;
>end loop;

this code confuses me
what is Code_Index and Codetext'Length

>Your two examples above do not agree.
>Following the encrypted example, Mother would encrypt to
>Mteohr. I suspect that may have been a slip of the fingers during
>typing, but it does add confusion to your requirements.

that is my mistake it is really Mteohr

>Now Length is the # of characters read + 1.
the reason for doing that is to loop through the string and reading all
char to length.

thanks for the help guys




  reply	other threads:[~2006-03-09  5:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-09  0:12 help with string splitting isaac2004
2006-03-09  0:44 ` jimmaureenrogers
2006-03-09  2:21 ` Jeffrey R. Carter
2006-03-09  5:54   ` isaac2004 [this message]
2006-03-09 16:50     ` Martin Krischik
2006-03-09 18:31       ` isaac2004
2006-03-09 19:58         ` jimmaureenrogers
2006-03-10 10:45         ` Martin Krischik
2006-03-09 19:28     ` Jeffrey R. Carter
2006-03-09  7:43 ` Anders Wirzenius
2006-03-09 10:15 ` Georg Bauhaus
replies disabled

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