[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Replicate characters and strings
From: |
Erik Sigra |
Subject: |
Replicate characters and strings |
Date: |
Sat, 22 Sep 2001 09:08:16 +0200 |
I wonder how to replicate characters and strings. Here is an Ada program that
does prints "-------------abcabcabc":
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Prov is
S : Unbounded_String := 13 * '-' & 3 * "abc";
begin
Put_Line(To_String(S));
end Prov;
I can't seem to achieve the equivalet with g++.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Replicate characters and strings,
Erik Sigra <=