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

📄 enum_case.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 Enum_case is
   type Colour is (Red, Blue, Green);
   Car_Colour : Colour;
   car_name :string(1..20);
begin
  -- Car_Colour := Blue;
   case Car_Colour is
      when Red =>
         Put ("A red car");
         New_Line;
      when Blue =>
         Put ("A blue car");
         New_Line;
      when Green =>
         Put ("A green car");
         New_Line;
   end case;
end Enum_case;

⌨️ 快捷键说明

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