Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
4
Task/Compound-data-type/Ada/compound-data-type-1.ada
Normal file
4
Task/Compound-data-type/Ada/compound-data-type-1.ada
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
type Point is tagged record
|
||||
X : Integer := 0;
|
||||
Y : Integer := 0;
|
||||
end record;
|
||||
4
Task/Compound-data-type/Ada/compound-data-type-2.ada
Normal file
4
Task/Compound-data-type/Ada/compound-data-type-2.ada
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
type Point is record
|
||||
X : Integer := 0;
|
||||
Y : Integer := 0;
|
||||
end record;
|
||||
11
Task/Compound-data-type/Ada/compound-data-type-3.ada
Normal file
11
Task/Compound-data-type/Ada/compound-data-type-3.ada
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
type Person (Gender : Gender_Type) is record
|
||||
Name : Name_String;
|
||||
Age : Natural;
|
||||
Weight : Float;
|
||||
Case Gender is
|
||||
when Male =>
|
||||
Beard_Length : Float;
|
||||
when Female =>
|
||||
null;
|
||||
end case;
|
||||
end record;
|
||||
Loading…
Add table
Add a link
Reference in a new issue