Jump to content

Common sorted list: Difference between revisions

m
(Added solution for Action!)
Line 29:
{{libheader|Action! Tool Kit}}
<lang Action!>INCLUDE "D2:SORT.ACT" ;from the Action! Tool Kit
 
DEFINE PTR="CARD"
 
PROC PrintArray(BYTE ARRAY a BYTE len)
Line 55 ⟶ 57:
RETURN (0)
 
PROC CommonListElements(CARDPTR ARRAY arrays
BYTE ARRAY lengths BYTE count
BYTE ARRAY res BYTE POINTER resLen)
Line 85 ⟶ 87:
RETURN
 
PROC Test(CARDPTR ARRAY arrays BYTE ARRAY lengths BYTE count)
BYTE ARRAY res(100)
BYTE len,i
Line 100 ⟶ 102:
 
PROC Main()
CARDPTR ARRAY arrays(3)
BYTE ARRAY
lengths(3)=[8 5 4],
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.