📄 me.adb
字号:
with Ada.Text_IO; use Ada.Text_IO;
--with Hello;
-- include our previous procedure
procedure your_name is
name : String (1 .. 100); -- 100 character array
last : Natural; -- can only contain natural integers
begin
Put ("Hello what is your name? ");
Get_Line (name, last);
for i in 1 .. 10 loop -- i is implicity declared
Put_Line (" there " & name (1 .. last));
-- & string concatenation
-- name(1..last)- array slice
end loop; -- control structure labelled
end your_name;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -