mirror of
https://github.com/ViolentAyang/DataStructureC.git
synced 2026-02-03 10:23:18 +08:00
Update 线性表动态初始化.c
This commit is contained in:
@@ -22,8 +22,9 @@ void IncreaseSize(SeqList *L,int len){
|
||||
free(p);
|
||||
}
|
||||
int main(){
|
||||
SeqList L;
|
||||
InitList(&L);
|
||||
SeqList L;InitList(&L);
|
||||
printf("线性表原长度:%d",L.MaxSize);
|
||||
IncreaseSize(&L,5);
|
||||
printf("线性表扩容后长度:%d",L.MaxSize);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user