[求助]恳请各位指出这个程序的错误
#include "stdio.h" #include "conio.h" #include<stdlib.h> #define max 100 typedef int elemtype; typedef struct {elemtype num[max]; int length; }List; void Initlist(List L) {L.length=0;} void give(List L) {int j=0; char ch; printf("Input the records:\n"); while(ch!='e'||j<=max) printf("the NO.%d record is %d\n",j,L.num[j-1]); j++;L.length++; } void print(List L) {int i; printf("the records are:\n"); for(i=1;i<=L.length;i++) printf("NO.%d is %d\n",i,L.num[i-1]);
main() { List L; Initlist(L); give(L); print(L);
getch(); return 0; }