原始问题:
"节点数据插入与确认提示"
&node->data);
printf("请输入要插入的位置:"); scanf("%d", &node->pos);
if (node->pos < 1 || node->pos > size) {
printf("位置无效,请重新输入。 ");
continue;}
for (int i = size; i >= node->pos; i--) {
node->data = data[i - 1];
node->next = data[i - 1]->next;
data[i - 1]->next = node;}
size++;
Prev:网络管理员兴趣因素