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

📄 simple_cat.adb

📁 This contains the following topics and more ADA versus C and Cplus plus Ada_training ADA 2005 for
💻 ADB
字号:
with Ada.Text_IO; use Ada.Text_IO;
procedure Simple_Cat is
   name : String (1 .. 20); --Current character
   last : Natural; -- can only contain natural integers
begin
   while not End_Of_File loop --For each Line
      while not End_Of_Line loop --For each character
         --Get (Ch);
         --Put_line(Ch); --Read / Write character

         Get_Line (name, last);
         Put_Line (name (1 .. last));
      end loop;
      Skip_Line;
      New_Line; --Next line / new line
   end loop;
end Simple_Cat;

⌨️ 快捷键说明

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