Menu

[r244]: / trunk / demos / Source / operator_multiply_3.adb  Maximize  Restore  History

Download this file

31 lines (24 with data), 779 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- {{Ada/Sourceforge|operator_multiply_2.adb}}
pragma License (Gpl);
pragma Ada_95;
with Ada.Text_IO;
with Ada.Strings.Fixed;
procedure Operator_Multiply_3 is
use Ada.Strings.Fixed;
package T_IO renames Ada.Text_IO;
A : constant String := 3 * "Hello "; -- A is filled with 3
-- Hello.
begin
T_IO.Put_Line ("A = " & A);
end Operator_Multiply_3;
----------------------------------------------------------------------------
-- $Author$
--
-- $Revision$
-- $Date$
--
-- $Id$
-- $HeadURL$
----------------------------------------------------------------------------
-- vim: textwidth=0 nowrap tabstop=8 shiftwidth=3 softtabstop=3 expandtab
-- vim: filetype=ada encoding=utf-8 fileformat=unix foldmethod=indent