/*#include <stdio.h>
#include <stdlib.h>
//单链表倒置
typedef struct node
{
int data;
struct node *next;
}body;
body *table()
{
int i,a;
body *head,*p1,*p2;
head=NULL;
for(i=0;;i++)
{
p1=(body *)malloc(sizeof (body));
scanf("%d",&a);
p1->data=a;
if(head==NULL)
{
head=p1;
p2=p1;
}
else
{
p2->next=p1;
p2=p1;
}
if(getchar=='\n')
break;
}
p2->next=NULL;
return head;
}
body *reverse(body *head)//倒置
{
body *p,*s;
if(head->next&&h
#include <stdlib.h>
//单链表倒置
typedef struct node
{
int data;
struct node *next;
}body;
body *table()
{
int i,a;
body *head,*p1,*p2;
head=NULL;
for(i=0;;i++)
{
p1=(body *)malloc(sizeof (body));
scanf("%d",&a);
p1->data=a;
if(head==NULL)
{
head=p1;
p2=p1;
}
else
{
p2->next=p1;
p2=p1;
}
if(getchar=='\n')
break;
}
p2->next=NULL;
return head;
}
body *reverse(body *head)//倒置
{
body *p,*s;
if(head->next&&h