⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 attributes.adb.npp

📁 This contains the following topics and more ADA versus C and Cplus plus Ada_training ADA 2005 for
💻 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 + -