Skip to content

Instantly share code, notes, and snippets.

@ytomino
Created November 7, 2016 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ytomino/4c482a9840c620719c2ff6c6bf4598cd to your computer and use it in GitHub Desktop.
Save ytomino/4c482a9840c620719c2ff6c6bf4598cd to your computer and use it in GitHub Desktop.
with Ada.Strings.Wide_Wide_Unbounded.Wide_Wide_Text_IO;
procedure MBD is
use Ada.Strings.Wide_Wide_Unbounded;
use Ada.Strings.Wide_Wide_Unbounded.Wide_Wide_Text_IO;
function "+" (Right : Wide_Wide_String) return Unbounded_Wide_Wide_String
renames To_Unbounded_Wide_Wide_String;
x : constant array (Positive range <>) of Unbounded_Wide_Wide_String := (
+"剣士", +"侍", +"弓師", +"重装兵", +"戦士", +"聖職者", +"暗殺者",
+"魔法師");
begin
for I in 1 .. 8 loop
Put (x (I) & ' ');
end loop;
-- for I in x'Range loop
-- Put (x (I) & ' ');
-- end loop;
-- for E of x loop
-- Put (E & ' ');
-- end loop;
end MBD;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment