#include<stdio.h>
#include<string.h>
#include<stdlib.h>
typedef struct node{
char line[256];
struct node *next;
}NODE;
void func(NODE **qcur,char line[])
{
NODE *p;
p=(NODE *)malloc(sizeof(NODE));
strcpy(p->line,line);
p->next=*qcur;
*qcur=p;
}
int main()
{
char buf[256];
NODE *p=NULL;
while(1){
gets(buf);
if(buf[0]=='\0')
break;
func(&p,buf);
}
for(;p!=NULL;p=p->next)
printf("%s\n",p->next);
return 0;
}这个程序大概意思数什么呀

#include<string.h>
#include<stdlib.h>
typedef struct node{
char line[256];
struct node *next;
}NODE;
void func(NODE **qcur,char line[])
{
NODE *p;
p=(NODE *)malloc(sizeof(NODE));
strcpy(p->line,line);
p->next=*qcur;
*qcur=p;
}
int main()
{
char buf[256];
NODE *p=NULL;
while(1){
gets(buf);
if(buf[0]=='\0')
break;
func(&p,buf);
}
for(;p!=NULL;p=p->next)
printf("%s\n",p->next);
return 0;
}这个程序大概意思数什么呀

