int Input_Sq(SqList &L) {//顺序表的输入 } int Output_Sq(SqList L) {//顺序表的输出 }
时间: 2023-05-24 09:05:28 浏览: 103
&L) {
int i = 0;
while (i < MAXSIZE) {
scanf("%d", &L.data[i]);
i++;
}
L.length = i;
return 1;
}
/* This function takes an empty SqList and fills it with user input.
It reads in integers until the list is full (MAXSIZE) or until the user inputs a non-integer value.
It returns 1 if successful. */
阅读全文