c简单链表问题
#include<stdio.h>#include<stdlib.h>
#include"sll_node.h"______________-______________
#define FALSE 0
#define TRUE 1
int sll_inser(Node**rootp,int new_value)_________-_调试时这两处提示出错。
{
Node *current;
Node *previous;
Node *new;
current=*rootp;
previous=NULL;
while(current!=NULL&¤t_>value<new_value)
{
previous=current;
current=current_>link;
}
new=(node *)mollc(sizeof(Node));
if(new==NULL)
return FALSE;
new_>value=new_value;
new_>link=current;
if(previons==NULL)
*rootp=news;
else
previons_>link=new;
return TRUE;
}
main()
{
int a[10]={5,8,10,11,24,30,35,40,46,50};
for(i=0;i<10;i++)
printf("%d",a[i]);
printf("\n");
sll_insert(&a,12);这里不知道能不能这样写
for(i=0;i<11;i++)
printf("%d",a[i]);
}谁能帮我改进一下这条程序