|
|
|
@ -172,10 +172,9 @@ void fun_w_Doc(worker *head)
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void stor_w_Doc(worker *head)
|
|
|
|
|
{
|
|
|
|
|
worker *p1,*p2;
|
|
|
|
|
worker *p1;
|
|
|
|
|
int n;
|
|
|
|
|
p1=head->next;
|
|
|
|
|
int i;
|
|
|
|
@ -191,6 +190,7 @@ void fun2_w_Doc(worker *head)
|
|
|
|
|
{
|
|
|
|
|
worker *p1,*p2;
|
|
|
|
|
p1=head;
|
|
|
|
|
int i,n;
|
|
|
|
|
for(p1=head;p1!=NULL;p1=p1->next)
|
|
|
|
|
{
|
|
|
|
|
for(p2=p1;p2!=NULL;p2=p2->next)
|
|
|
|
@ -210,19 +210,18 @@ void fun2_w_Doc(worker *head)
|
|
|
|
|
|
|
|
|
|
void print_w_Doc(worker *head)
|
|
|
|
|
{
|
|
|
|
|
worker *p;
|
|
|
|
|
if(p=NULL)
|
|
|
|
|
worker *p1;
|
|
|
|
|
if(p1=NULL)
|
|
|
|
|
{
|
|
|
|
|
printf("无记录!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
printf("记录为:\n\n");
|
|
|
|
|
printf("工号 工作量 名次\n");
|
|
|
|
|
p=head->next;
|
|
|
|
|
p1=head->next;
|
|
|
|
|
do
|
|
|
|
|
{
|
|
|
|
|
printf("%d %d %d\n",p->num,p->work,p->ranking);
|
|
|
|
|
p=p->next;
|
|
|
|
|
}while(p!=NULL);
|
|
|
|
|
printf("%d %d %d\n",p1->num,p1->work,p1->ranking);
|
|
|
|
|
p1=p1->next;
|
|
|
|
|
}while(p1!=NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|