comp.lang.ada
 help / color / mirror / Atom feed
From: Jerry <lanceboyle@qwest.net>
Subject: Re: array of string
Date: Mon, 6 Oct 2014 19:08:20 -0700 (PDT)
Date: 2014-10-06T19:08:20-07:00	[thread overview]
Message-ID: <0e26b915-50b9-4df5-916e-c61cdcc13424@googlegroups.com> (raw)
In-Reply-To: <3ffbdc6a-e767-4de1-922f-c9c1ec748f4d@googlegroups.com>

with Ada.Strings.Unbounded;    use Ada.Strings.Unbounded;
with Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO;
procedure Strings_Demo is
    type String_Array is array (Integer range <>) of Unbounded_String;
    Cities : String_Array(1 .. 2);
begin
    Cities(1) := To_Unbounded_String("London");
    Cities(2) := To_Unbounded_String("Toronto");
    Put_Line(Cities(1));
    Put_Line(Cities(2));
end Strings_Demo;

  parent reply	other threads:[~2014-10-07  2:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-03 23:29 array of string Stribor40
2014-10-04  0:50 ` Jerry
2014-10-04  1:07   ` Brad Moore
2014-10-04  1:19   ` Stribor40
2014-10-04  1:29     ` Stribor40
2014-10-04  2:01       ` Stribor40
2014-10-04  7:14       ` Simon Wright
2014-10-04  8:32       ` Dmitry A. Kazakov
2014-10-04 14:15         ` AdaMagica
2014-10-04 15:20           ` Dmitry A. Kazakov
2014-10-06 16:58             ` Adam Beneschan
2014-10-04  3:09     ` Shark8
2014-10-04  5:33     ` Brad Moore
2014-10-07  1:06 ` brbarkstrom
2014-10-07 16:06   ` Use of bounded strings? (Was: array of string) Jacob Sparre Andersen
2014-10-07  2:08 ` Jerry [this message]
2014-10-07 16:49 ` array of string brbarkstrom
replies disabled

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