70,029
社区成员




struct student{
char name[SIZE];
unsigned int studentnumber;
char sex;
char school_name[SIZE];
char major[SIZE];
};
typedef struct Item;
typedef struct Node{
Item item;
struct Node *next;
}Node;
void Additem(Item item, List *plist)
{
Node *pnode;
pnode=(Node*)malloc(sizeof(Node));
Copy(item,*plist);
if(*plist=NULL)
*plist = *pnode;
else
{
while((*plist)->next!=NULL)
plist=(*plist)->next;
(*plist)->next=*pnode;
}
*pnode->next=NULL;
}
void Copy(Item item, List *plist)
{
(*plist)->item=item;
}