Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,6 +0,0 @@
|
|||
function noargs return Integer;
|
||||
function twoargs (a, b : Integer) return Integer;
|
||||
-- varargs do not exist
|
||||
function optionalargs (a, b : Integer := 0) return Integer;
|
||||
-- all parameters are always named, only calling by name differs
|
||||
procedure dostuff (a : Integer);
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
type Box; -- tell Ada a box exists (undefined yet)
|
||||
type accBox is access Box; -- define a pointer to a box
|
||||
type Box is record -- later define what a box is
|
||||
next : accBox; -- including that a box holds access to other boxes
|
||||
end record;
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
package Stack is
|
||||
procedure Push(Object:Integer);
|
||||
function Pull return Integer;
|
||||
end Stack;
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
package body Stack is
|
||||
|
||||
procedure Push(Object:Integer) is
|
||||
begin
|
||||
-- implementation goes here
|
||||
end;
|
||||
|
||||
function Pull return Integer;
|
||||
begin
|
||||
-- implementation goes here
|
||||
end;
|
||||
|
||||
end Stack;
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
with Stack;
|
||||
procedure Main is
|
||||
N:integer:=5;
|
||||
begin
|
||||
Push(N);
|
||||
...
|
||||
N := Pull;
|
||||
end Main;
|
||||
Loading…
Add table
Add a link
Reference in a new issue