简单顺序表在链接时出错
程序代码:
#include <stdio.h> #define MAXSIZE 100 typedef struct List { int password[MAXSIZE]; int last; }SeqList; SeqList ListInit (SeqList L) { L.last = 0; return L; } SeqList ListInsert (SeqList L) { int i, n; printf ("n="); scanf ("%d", &n); L.last = n; for (i=0; i<n; i++) { scanf ("%d", &L.password[i]); } return L; } void mian () { SeqList L; int m; L = ListInit (L); ListInsert (L); for (m=0; m<L.last; m++) { printf ("%d ", L.password[m]); } }各位大神。。帮帮忙找茬