代写 include stdio.h

include stdio.h
include list.c

void
PrintList const List L

Position P Header L ;

if IsEmpty L
printf Empty listn ;
else

do

P Advance P ;
printf d , Retrieve P ;
while !IsLast P, L ;
printf n ;

main

List L;
Position P;
int i;

L MakeEmpty NULL ;
P Header L ;
PrintList L ;

for i 0; i 10; i

Insert i, L, P ;
PrintList L ;
P Advance P ;

for i 0; i 10; i 2
Delete i, L ;

for i 0; i 10; i
if i 2 0 Find i, L ! NULL
printf Find failsn ;

printf Finished deletionsn ;

PrintList L ;

DeleteList L ;

return 0;