摘要:
1 #include 2 #include 3 typedef struct node* link; 4 struct node {int item;link next;}; 5 int main (int argc, char *argv[]){ 6 7 int i, N=atoi(argv[1]), M=atoi(argv[2]); 8 link t=malloc(sizeof *t), x=t; 9 t->item =1; t->next=t;10 11 for(i=2;inext=malloc(sizeof *x));13 x->item=i;x->next=t
阅读全文