diff --git "a/2224020152/\347\254\254\344\271\235\345\215\225\345\205\203/\350\256\276\350\256\241\351\253\230\346\225\210\346\217\222\345\205\245\357\274\214\345\210\240\351\231\244\345\222\214\346\214\211\345\272\217\345\217\267\346\237\245\346\211\276\347\232\204\346\225\260\346\215\256\347\273\223\346\236\204.cpp" "b/2224020152/\347\254\254\344\271\235\345\215\225\345\205\203/\350\256\276\350\256\241\351\253\230\346\225\210\346\217\222\345\205\245\357\274\214\345\210\240\351\231\244\345\222\214\346\214\211\345\272\217\345\217\267\346\237\245\346\211\276\347\232\204\346\225\260\346\215\256\347\273\223\346\236\204.cpp" new file mode 100644 index 0000000000000000000000000000000000000000..9cc807dbf47fd3c6a7658260e1ff514b29fa91e9 --- /dev/null +++ "b/2224020152/\347\254\254\344\271\235\345\215\225\345\205\203/\350\256\276\350\256\241\351\253\230\346\225\210\346\217\222\345\205\245\357\274\214\345\210\240\351\231\244\345\222\214\346\214\211\345\272\217\345\217\267\346\237\245\346\211\276\347\232\204\346\225\260\346\215\256\347\273\223\346\236\204.cpp" @@ -0,0 +1,24 @@ + +#include + +#define MaxSize 10 +typedef struct { + int data[MaxSize]; + int length; +}SqList; + + +void InitList(SqList *L) { + for(int i=0; idata[i] = 0; + L->length = 0; + } +} + +int main() { + SqList L; + InitList(&L); + for(int i=0; i