摘要:
#include "stdafx.h"#include "malloc.h"typedef struct node{ int data; struct node *next;}nnode;void initiate(nnode **head){ *head=(nnode *)malloc(sizeof(nnode)); (*head)->next=NULL;}void insert(nnode *head,int n){ nnode *p=head; nnode *s; while(p->next!=NULL) { p=p->next; 阅读全文