your_name.adb.npp

来自「This contains the following topics and m」· NPP 代码 · 共 21 行

NPP
21
字号
with Ada.Text_IO; use Ada.Text_IO;	-- a package containing the"put_line" procedureprocedure your_name is	procedure hello is 			-- candidate for the "main" procedure.	begin	put_line("hello");	end hello;name :string(1..100); 			-- 100 character arrayfirst :natural; 				-- can only contain natural integersbeginput("Hello what is your name? ");get_line(name,first);for i in 1..10 loop --integer'first loop 	-- i is implicity declared as integerput_line(" sai " & name(1..first));				-- & string concatenation				-- name(1..last)- array sliceend loop;				 -- control structure labelledend;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?