From: Beamish <019522b@axe.acadiau.ca>
Subject: Help in translating
Date: 1997/03/12
Date: 1997-03-12T00:00:00+00:00 [thread overview]
Message-ID: <3327A7EC.1C11@axe.acadiau.ca> (raw)
I need some help in doing this assignment. If anyone can answer this and
e-mail me back I'd really appreciate it. Thanks in advance.
Rewrite the following Modula-2 code in Ada:
MODULE Swap;
IMPORT XIO;
VAR this, that : INTEGER;
PROCEDURE Exchange(VAR First, Second : INTEGER);
VAR Temp : INTEGER;
BEGIN
Temp := First;
First := Second;
Second := Temp;
END Exchange;
BEGIN
XIO.IntIn(this);
XIO.IntOut(that);
Exhange(this, that);
XIO.IntOut(this, 1);
XIO.IntOut(that, 1);
END Swap.
next reply other threads:[~1997-03-12 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-12 0:00 Beamish [this message]
1997-03-15 0:00 ` Help in translating Robert Dewar
1997-03-23 0:00 ` the one and only real true kibo
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox