嘿!!!
#include "stdio.h"
void main(void)
{
struct
ch
{
char x;
struct ch *next;
}*a,*head,*end;
int n;
for(n=0;;a++)
{
a=(struct ch *)malloc(sizeof(struct ch));
scanf("%c",a->x);
if(n==0)head=end=a;
if(n!=0)
{end->next=a;
end=a;
end->next=NULL;
}
}
end=head;
while(end->next==NULL)
{printf("%c",end->x);
end=end->next;
}
getch();
}