📄 attributes.adb.npp
字号:
--Attributes--Ada also provides the ability to enquire about a type or object from within the code by using attributes. Some of the attributes for--discrete types arewith text_io; use text_io;procedure attributes is beginput("Integer'first"); -- the smallest Integerput("Integer'last"); -- the largest integerput("Processors'succ(M68000)"); -- successor of the M68000put("Upper_Chars'pred('C')"); -- the predecessor of 'C' ('B')put("Integer'image(67)"); -- the string " 67" -- space for a '-'--put("Integer'value("67")") ;-- the integer 67.put("Processors'pos(M68030)"); -- the position of M68030 in the type.-- (3, position 0 is first).end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -