void Insert(ElementType X, List L, Position P){Position TmpCell;
TmpCell =( struct Node*) malloc(sizeof(struct Node));
if (TmpCell == NULL)
printf("Out of space.\n");
TmpCell->Element = X;
TmpCell->Next = P->Next;
P->Next = TmpCell;}這是插入功能的代碼,調試的時候的信息是這樣的。這個代碼道理我懂,但是為什么會出錯。謝謝。謝謝大家。這個問題已經解決。
- 2 回答
- 0 關注
- 670 瀏覽
添加回答
舉報
0/150
提交
取消