Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Who can help me see what's wrong with my program? Why is the correct result not displayed?
Who can help me see what's wrong with my program? Why is the correct result not displayed?
The main functions are modified as follows. Do not modify the length when calling ListInsert, because it has been modified in ListInsert.

void main(){

SqList La,Lb,Lc;

int I;

InitList_Sq。 la);

InitList_Sq。 lb);

InitList_Sq。 LC);

Printf ("Please initialize the list \ n");

set list _ Sq(& amp; La, 10);

for(I = 0; I<5; i++){

list insert(& amp; Lb,Lb.length+ 1,la . elem[2 * I]);

list insert(& amp; Lc,Lc.length+ 1,la . elem[2 * I+ 1]);

}

Printf ("list La is \ n");

print list _ Sq(& amp; la);

printf(" List Lb is \ n ");

print list _ Sq(& amp; lb);

Printf ("list Lc is \ n");

print list _ Sq(& amp; LC);

}