我想要一个扩展标记类型的容器。例如, : type Root is abstract tagged private;
package Queue_Interface
is new Ada.Containers.Synchronized_Queue_Interfaces
(Element_Type => Ada.Strings.Unbounded.Unbounded_String);
我正在努力在Ada中实现素数分解函数。我需要从calc_prime_numbers返回一个Vector。我试图在Y中存储该矢量。但是,无论何时编译,编译器都会说prime.adb:40:07: subtype mark required in this context。我不确定那是什么意思。子类型需要什么意思?我如何解决它? with Ada.Text_IO, Ada.Integer_Text_I
我有以下代码相结合的两个字节到字节数组: pragma Restrictions (No_Exception_Propagation);
with Interfaces; use Interfaces;
procedure No_Propagation is
type Byte is new Unsigned_8;
type Byte_Array is array (N
不好意思问这个问题,但Ada在输入和输出系统上真的很严格,所以我无法弄清楚如何从输入和输出系统获取输入用户并将其放入数组中。 with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada;
procedure Main is
type MY_ARRAY is array(1..9) of INTEGER;