Реферат: Программирование на языках высокого уровня 3
else
{
target=head=(struct list *)malloc(sizeof(struct list));
target->next=NULL;
target->value=value;
count+;
}
}
void delete_any (int pos)
{
if(pos<0) return;
list *previous;
int i=0;
if(head!=NULL)
{
if(pos==0)
{
list *next_item=head->next;
free(head);
head=next_item;
}
else
{
previous=head;
pos--;
while((i<pos)&&(previous!=NULL))
{
previous=previous->next;
i++;