文章
2
粉丝
420
获赞
1
访问
22.7k
#include <stdio.h>
#include <stdlib.h>
typedef struct Node{
int Element;
struct Node *next;
} Node,*Nodelist;
Nodelist creat(Nodelist &L)
{
Node *s;
int element;
L = (Nodelist)malloc(sizeof(Node));
L->next= NULL;
for(int i=1;i<=5;i++){
scanf("%d",&element);
s = (Node*)malloc(sizeof(Node));
s->Element=element;
s->next = L->next;
L->next = s;
}
return L;
}
Node* ZJXEsort(Node *L)
{
Node *p,*pre,*r;
p = L->next;
int num,a,b;
while(p...
登录后发布评论
编译,选择C++,C编译不出来