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

📄 integer_program.adb

📁 This contains the following topics and more ADA versus C and Cplus plus Ada_training ADA 2005 for
💻 ADB
字号:
with Text_IO;             use Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;

procedure integer_program is

   x : Integer := 99;

   package int_io is new Text_IO.Integer_IO (Integer);   -- package
                                                         --instantiation

begin

   Text_IO.Put_Line ("Printing something");

   Text_IO.Put_Line ("x");

   int_io.Put (x);   -- 3rd type using package int_io is new
                     --text_io.integer_io(integer);
   Put (x);-- 2nd type using ada.integer_text_io;

   for i in  1 .. 4 loop

      int_io.Put (i);

      Text_IO.New_Line;

      --text_io.put(integer'image(i)); -- 1 type using normal text_io;

      Put (i);-- 2nd type using ada.integer_text_io;

      Text_IO.New_Line;

   end loop;

end integer_program;

⌨️ 快捷键说明

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