【发布时间】:2017-10-17 12:00:39
【问题描述】:
我正在尝试遍历字符并使用Put_Line() 函数打印它们,但它需要字符串参数,而不是字符。是否可以像使用 'Image() 使用 Integer 一样将 char 转换为 String?我的代码:
with Ada.Text_IO;
use Ada.Text_IO;
procedure Main is
begin
for I in 'A' .. 'Z' loop
Put_Line(I);
end loop;
end Main;
【问题讨论】:
标签: type-conversion ada