1 #include <cstdlib>
2 #include <iostream>
3 #include <stdio.h>
4 #include <string.h>
5 #include <conio.h>
6
7
8 using namespace std;
9 struct workers
10 {
11 char name[15]; //姓名
12 char department[18]; //单位
13 char gender[5]; //性别
14 int age; //年龄
15 char telephone[12]; //电话
16 long wage; //工资
17 char num[20]; //职工号
18
19 char job[50];//职务
20 struct workers *next;
21 };
22
23 typedef struct work_link{
24 struct workers *head;
25 int length;
26 }workers_list;
27 void output_worker(struct workers *p);
28 void output_worker_wage(struct workers *p1);
29 int output_info(workers_list workers_Sq);
30
31
32
33 int Output_surface_two()//界面;
34 { system("cls");
35 printf("\n%15s","*");
36 cout<<"*************************************************";
37 printf("\n%15s","*");cout<<"*****************员工管理系统********************\n";
38 printf("\n%15s","(");cout<<"1) ";cout<<"删除员工信息\n";
39 printf("\n%15s","(");cout<<"2) ";cout<<"修改员工信息\n";
40 printf("\n%15s","(");cout<<"3) ";cout<<"对员工进行排序\n";
41 printf("\n%15s","(");cout<<"4) ";cout<<"查询员工信息\n";
42 printf("\n%15s","(");cout<<"5) ";cout<<"加入新员工信息\n";
43 printf("\n%15s","(");cout<<"6) ";cout<<"输出所有员工信息\n";
44 printf("\n%15s","(");cout<<"7) ";cout<<"显示员工工资情况及平均工资\n";
45 printf("\n%15s","(");cout<<"8) ";cout<<"退出\n";
46 printf("\n%15s","*");
47 cout<<"请选择您要进行的操作并确认";
48 int n;
49 cin>>n;
50 while(n<1||n>8)
51 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
52 system("cls");//清屏函数;
53 return n;
54 }
55
56 int Delete_info(workers_list &workers_Sq)//删除员工信息;
57 {char num[20];
58 printf("\n%15s","");
59 cout<<"请输入您要删除员工的员工号并确认";
60 cin>>num;
61 struct workers *p1,*p2;
62 p1=workers_Sq.head;
63 int n;
64 if(!p1)
65 {printf("\n%15s","*");cout<<"系统中没有员工信息";
66 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
67 cin>>n;
68 while(n<1||n>2)
69 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
70 int k;
71 if(n==1)
72 {k=Output_surface_two();
73 return k;
74 }
75 else
76 return 8;
77 }
78
79
80
81 p2=p1;
82 p1=p1->next;
83 if(strcmp(p2->num,num)==0)
84 {system("cls");
85 printf("\n%15s","*");
86 cout<<"您所要删除的员工信息为:\n";
87
88 cout<<"职工号 |姓名 |性别|年龄|电话 |职务 |工资(元/月)| 单位 \n";
89 int i;
90 for(i=1;i<=80;i++)
91 cout<<"-";
92
93 output_worker(p2);
94 printf("\n%15s","*");cout<<"确认删除请按1,取消删除请按0\n";
95 printf("\n%15s","");
96 cin>>n;
97 while(n<0||n>1)
98 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
99 if(n==1)
100 {printf("\n%15s","*");cout<<"成功删除\n";workers_Sq.length--;
101 workers_Sq.head=p1;
102 free(p2);
103 printf("\n%15s","*");
104 cout<<"按确认键返回";
105 getch();
106 int k;
107 k=Output_surface_two();
108 return k;
109 }
110 else
111 {int k;
112 k=Output_surface_two();return k;
113 }
114 }
115 while(p1)
116 {
117 if(strcmp(p1->num,num)==0)
118 {p2->next=p1->next;
119 system("cls");
120 printf("\n%15s","*");
121 cout<<"您所要删除的员工信息为:\n";
122
123 cout<<"职工号 |姓名 |性别|年龄|电话 |职务 |工资(元/月)| 单位 \n";
124 int i;
125 for(i=1;i<=80;i++)
126 cout<<"-";
127
128 output_worker(p1);
129 printf("\n%15s","*");cout<<"确认删除请按1,取消删除请按0\n";
130 cin>>n;
131 while(n<0||n>1)
132 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
133 if(n==1)
134 {printf("\n%15s","*");cout<<"成功删除\n";workers_Sq.length--;
135 free(p1);
136 printf("\n%15s","*");
137 cout<<"按确认键返回\n";
138 getch();
139 int k;
140 k=Output_surface_two();
141 return k;
142 }
143 else
144 return 8;
145 }
146 p1=p1->next;
147 }
148 if(!p1)
149 {printf("\n%15s","*");cout<<"系统中没有您要删除的员工\n";
150 printf("\n%15s","*");
151 cout<<"按确认键返回\n";
152 getch();
153 int k;
154 k=Output_surface_two();
155 return k;
156 }
157 }
158
159
160
161 int insert_info(workers_list &workers_Sq)//插入新员工信息;
162 {printf("\n%15s","*");cout<<"请依次输入新员工信息\n";
163 struct workers *p,*p1;
164 p=(struct workers *)malloc(sizeof(struct workers));
165 printf("\n%15s","*");cout<<"职工号:";
166 cin>>p->num;
167 p1=workers_Sq.head;
168 while(p1)
169 {if(strcmp(p1->num,p->num)==0)
170 {printf("\n%15s","*");cout<<"该员工已经存在";goto L;}
171 p1=p1->next;
172 }
173 printf("\n%15s","*");cout<<"姓名:";
174 cin>>p->name;
175 printf("\n%15s","*");cout<<"性别:";
176 cin>>p->gender;
177 printf("\n%15s","*");cout<<"年龄:";
178 cin>>p->age;
179 printf("\n%15s","*");cout<<"电话:";
180 cin>>p->telephone;
181 printf("\n%15s","*");cout<<"职务:";
182 cin>>p->job;
183 printf("\n%15s","*");cout<<"工资(元/月):";
184 cin>>p->wage;
185 printf("\n%15s","*");cout<<"单位:";
186 cin>>p->department;
187 p->next=NULL;
188 p->next=workers_Sq.head;
189 workers_Sq.head=p;
190 system("cls");
191 printf("\n%15s","*");
192 cout<<"添加成功\n";
193 printf("\n%15s","*");
194 cout<<"您所添加的员工信息为:\n\n";
195 workers_Sq.length++;
196
197 cout<<"职工号 |姓名 |性别|年龄|电话 |职务 |工资(元/月)| 单位 \n";
198 int i;
199 for(i=1;i<=80;i++)
200 cout<<"-";
201 output_worker(p);
202 L:;
203 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
204 int n;
205 cin>>n;
206 while(n<1||n>2)
207 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
208 int k;
209 if(n==1)
210 {k=Output_surface_two();
211 return k;
212 }
213 else
214 return 8;
215 }
216
217
218 int change_info(workers_list &workers_Sq)//修改员工信息;
219 {
220 char num[20];
221 printf("\n%15s","");
222 cout<<"请输入您要修改员工的员工号并确认";
223 cin>>num;
224 struct workers *p1,*p2;
225 p1=workers_Sq.head;
226 int n;
227 if(!p1)
228 {printf("\n%15s","*");cout<<"系统中没有员工信息";
229 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
230 cin>>n;
231 while(n<1||n>2)
232 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
233 int k;
234 if(n==1)
235 {k=Output_surface_two();
236 return k;
237 }
238 else
239 return 8;
240 }
241
242 p1=workers_Sq.head;
243 while(p1)
244 {
245 if(strcmp(num,p1->num)==0)
246 {system("cls");printf("\n%15s","");cout<<"请输入您所要修改的信息";
247 printf("\n%15s","");cout<<"(1)姓名:";
248 printf("\n%15s","");cout<<"(2)单位: ";
249 printf("\n%15s","");cout<<"(3)性别: ";
250 printf("\n%15s","");cout<<"(4)年龄: ";
251 printf("\n%15s","");cout<<"(5)电话: ";
252 printf("\n%15s","");cout<<"(6)工资: ";
253 printf("\n%15s","");cout<<"(7)职务: ";
254 printf("\n%15s","");
255 int m;
256 cin>>m;
257
258 while(m<1||m>7)
259 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>m;}
260 printf("\n%15s","*"); cout<<"请输入相应最新信息";
261 switch(m)
262 {case 1:cin>>p1->name;break;
263 case 2:cin>>p1->department;break;
264 case 3:cin>>p1->gender;break;
265 case 4:cin>>p1->age;break;
266 case 5:cin>>p1->telephone;break;
267 case 6:cin>>p1->wage;break;
268 case 7:cin>>p1->job;break;
269 }
270 system("cls");
271 printf("\n%15s","*");cout<<"更新后的员工信息:\n";
272 cout<<"职工号 |姓名 |性别|年龄|电话 |职务 |工资(元/月)| 单位 \n";
273 output_worker(p1);
274 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
275 cin>>n;
276 while(n<1||n>2)
277 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
278 int k;
279 if(n==1)
280 {k=Output_surface_two();
281 return k;
282 }
283 else
284 return 8;
285 }
286 p1=p1->next;
287 }
288 if(!p1)
289 {printf("\n%15s","*");cout<<"系统中没有员工信息";
290 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
291 cin>>n;
292 while(n<1||n>2)
293 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
294 int k;
295 if(n==1)
296 {k=Output_surface_two();
297 return k;
298 }
299 else
300 return 8;
301 }
302 }
303
304 void copy_worker(struct workers *x,struct workers *y)//交换x,y
305 {struct workers z;
306
307 strcpy(z.name,x->name);strcpy(x->name,y->name);strcpy(y->name,z.name);
308 strcpy(z.department,x->department);strcpy(x->department,y->department);strcpy(y->department,z.department);
309 strcpy(z.gender,x->gender);strcpy(x->gender,y->gender);strcpy(y->gender,z.gender);
310 strcpy(z.telephone,x->telephone);strcpy(x->telephone,y->telephone);strcpy(y->telephone,z.telephone);
311 strcpy(z.num,x->num);strcpy(x->num,y->num);strcpy(y->num,z.num);
312 strcpy(z.job,x->job);strcpy(x->job,y->job);strcpy(y->job,z.job);
313 z.age=x->age;x->age=y->age;y->age=z.age;
314 z.wage=x->wage;x->wage=y->wage;y->wage=z.wage;
315 }
316
317
318
319
320
321
322 int sort_info(workers_list &workers_Sq)//对员工进行排序;
323 {system("cls");
324
325
326 printf("\n%15s","");cout<<"请选择排序条件";
327
328 printf("\n%15s","");cout<<"(1)姓名:";
329 printf("\n%15s","");cout<<"(2)单位: ";
330 printf("\n%15s","");cout<<"(3)性别: ";
331 printf("\n%15s","");cout<<"(4)年龄: ";
332 printf("\n%15s","");cout<<"(5)电话: ";
333 printf("\n%15s","");cout<<"(6)工资: ";
334 printf("\n%15s","");cout<<"(7)职务: ";
335 printf("\n%15s","");cout<<"(8)职工号: \n";
336 printf("\n%15s","");
337 struct workers *p1,*p2,*p3;
338 int i,j;
339 int m;
340 cin>>m;
341 while(m<1||m>8)
342 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>m;}
343 switch(m)
344 {case 1:p1=p2=p3=workers_Sq.head;
345 for(i=1;i<workers_Sq.length;i++,p1=p1->next)
346 {p3=p1;
347 for(j=i+1,p2=p1->next;j<=workers_Sq.length;j++,p2=p2->next)
348 {if(strcmp(p3->name,p2->name)>0)
349 p3=p2;
350 }
351 if(p3!=p1)
352 copy_worker(p3,p1);
353 }break;
354
355
356
357 case 2:p1=p2=p3=workers_Sq.head;
358 for(i=1;i<workers_Sq.length;i++,p1=p1->next)
359 {p3=p1;
360 for(j=i+1,p2=p1->next;j<=workers_Sq.length;j++,p2=p2->next)
361 {if(strcmp(p3->department,p2->department)>0)
362 p3=p2;
363 }
364 if(p3!=p1)
365 copy_worker(p3,p1);
366 }break;
367
368
369 case 3:p1=p2=p3=workers_Sq.head;
370 for(i=1;i<workers_Sq.length;i++,p1=p1->next)
371 {p3=p1;
372 for(j=i+1,p2=p1->next;j<=workers_Sq.length;j++,p2=p2->next)
373 {if(strcmp(p3->gender,p2->gender)>0)
374 p3=p2;
375 }
376 if(p3!=p1)
377 copy_worker(p3,p1);
378 }break;
379
380
381
382 case 4:p1=p2=p3=workers_Sq.head;
383 for(i=1;i<workers_Sq.length;i++,p1=p1->next)
384 {p3=p1;
385 for(j=i+1,p2=p1->next;j<=workers_Sq.length;j++,p2=p2->next)
386 {if(p3->age>p2->age)
387 p3=p2;
388 }
389 if(p3!=p1)
390 copy_worker(p3,p1);
391 }break;
392
393
394 case 5:p1=p2=p3=workers_Sq.head;
395 for(i=1;i<workers_Sq.length;i++,p1=p1->next)
396 {p3=p1;
397 for(j=i+1,p2=p1->next;j<=workers_Sq.length;j++,p2=p2->next)
398 {if(strcmp(p3->telephone,p2->telephone)>0)
399 p3=p2;
400 }
401 if(p3!=p1)
402 copy_worker(p3,p1);
403 }break;
404
405
406 case 6:p1=p2=p3=workers_Sq.head;
407 for(i=1;i<workers_Sq.length;i++,p1=p1->next)
408 {p3=p1;
409 for(j=i+1,p2=p1->next;j<=workers_Sq.length;j++,p2=p2->next)
410 {if(p3->wage>p2->wage)
411 p3=p2;
412 }
413 if(p3!=p1)
414 copy_worker(p3,p1);
415 }break;
416
417
418 case 7:p1=p2=p3=workers_Sq.head;
419 for(i=1;i<workers_Sq.length;i++,p1=p1->next)
420 {p3=p1;
421 for(j=i+1,p2=p1->next;j<=workers_Sq.length;j++,p2=p2->next)
422 {if(strcmp(p3->job,p2->job)>0)
423 p3=p2;
424 }
425 if(p3!=p1)
426 copy_worker(p3,p1);
427 }break;
428
429
430 case 8:p1=p2=p3=workers_Sq.head;
431 for(i=1;i<workers_Sq.length;i++,p1=p1->next)
432 {p3=p1;
433 for(j=i+1,p2=p1->next;j<=workers_Sq.length;j++,p2=p2->next)
434 {if(strcmp(p3->num,p2->num)>0)
435 p3=p2;
436 }
437 if(p3!=p1)
438 copy_worker(p3,p1);
439 }break;
440 }
441 system("cls");
442 printf("\n%15s","");cout<<"排序后输出\n";
443 return 6;
444 }
445
446
447
448 int find_info(workers_list workers_Sq)// 查询员工信息;
449 {system("cls");
450 printf("\n%15s","");cout<<"请选择查询条件";
451
452 printf("\n%15s","");cout<<"(1)姓名:";
453 printf("\n%15s","");cout<<"(2)单位: ";
454 printf("\n%15s","");cout<<"(3)性别: ";
455 printf("\n%15s","");cout<<"(4)年龄: ";
456 printf("\n%15s","");cout<<"(5)电话: ";
457 printf("\n%15s","");cout<<"(6)工资: ";
458 printf("\n%15s","");cout<<"(7)职务: ";
459 printf("\n%15s","");cout<<"(8)职工号: \n";
460 printf("\n%15s","");
461
462 int m;
463 cin>>m;
464 while(m<1||m>8)
465 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>m;}
466 struct workers *p1=(struct workers *)malloc(sizeof(struct workers));
467 struct workers *p2=workers_Sq.head;
468 printf("\n%15s","*"); cout<<"请输入相应查询信息";
469 switch(m)
470 {case 1:cin>>p1->name;p2=workers_Sq.head;
471 while(p2)
472 {if(strcmp(p1->name,p2->name)==0)
473 break;p2=p2->next;
474 }break;
475 case 2:cin>>p1->department;
476 while(p2)
477 {if(strcmp(p1->department,p2->department)==0)
478 break;p2=p2->next;
479 }break;
480 case 3:cin>>p1->gender;while(p2)
481 {if(strcmp(p1->gender,p2->gender)==0)
482 break;p2=p2->next;
483 }break;
484 case 4:cin>>p1->age;while(p2)
485 {if(p1->age==p2->age)
486 break;p2=p2->next;
487 }break;
488 case 5:cin>>p1->telephone;while(p2)
489 {if(strcmp(p1->telephone,p2->telephone)==0)
490 break;p2=p2->next;
491 }break;
492 case 6:cin>>p1->wage;while(p2)
493 {if(p1->wage==p2->wage)
494 break;p2=p2->next;
495 }break;
496 case 7:cin>>p1->job;while(p2)
497 {if(strcmp(p1->job,p2->job)==0)
498 break;p2=p2->next;
499 }break;
500 case 8:cin>>p1->num;while(p2)
501 {if(strcmp(p1->num,p2->num)==0)
502 break;p2=p2->next;
503 }break;
504 }
505
506 if(!p2)
507 {printf("\n%15s","*");cout<<"系统中没有员工信息";
508 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
509 int n;
510 cin>>n;
511 while(n<1||n>2)
512 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
513 int k;
514 if(n==1)
515 {k=Output_surface_two();
516 return k;
517 }
518 else
519 return 8;
520 }
521 else
522 {system("cls");
523 printf("\n%15s","*");cout<<" 您所查询的员工信息 *\n\n";
524 cout<<"职工号 |姓名 |性别|年龄|电话 |职务 |工资(元/月)| 单位 \n";
525 int i;
526 for(i=1;i<=80;i++)
527 cout<<"-";
528 output_worker(p2);
529 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
530 int n;
531 cin>>n;
532 while(n<1||n>2)
533 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
534 int k;
535 if(n==1)
536 {k=Output_surface_two();
537 return k;
538 }
539 else
540 return 8;
541 }
542 }
543
544 void output_worker(struct workers *p)//输出一个员工信息
545 {int n;
546 printf("%-8s|",p->num);
547 printf("%-9s|",p->name);
548 printf("%-4s|",p->gender);
549 printf("%-4d|",p->age);
550 printf("%-11s|",p->telephone);
551 printf("%-9s|",p->job);
552 printf("%-11d|",p->wage);
553 printf("%-5s",p->department);
554 cout<<endl;
555 for(n=1;n<=80;n++)
556 cout<<"-";
557 }
558
559
560
561 int output_info(workers_list workers_Sq)//输出所有员工信息;
562 {printf("\n%15s","*");cout<<"请选择每页要显示的信息数,最多15条";
563 int n;
564 cin>>n;
565 while(n<1||n>15)
566 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
567 system("cls");
568 if( workers_Sq.length==0)
569 {printf("\n%15s","*");cout<<"系统中没有员工信息";
570 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
571 int nn;
572 cin>>nn;
573 while(nn<1||nn>2)
574 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>nn;}
575 int k;
576 if(nn==1)
577 {k=Output_surface_two();
578 return k;
579 }
580 else
581 return 8;
582 }
583
584 struct workers *p1;//信息的输出
585 p1=workers_Sq.head;
586 int count;
587 int i;
588 while(p1)
589 {system("cls");
590 cout<<"职工号 |姓名 |性别|年龄|电话 |职务 |工资(元/月)| 单位 \n";
591 for(i=1;i<=80;i++)
592 cout<<"-";
593 count=n;
594 while((count--)&&(p1))
595 {output_worker(p1);p1=p1->next;}
596 printf("\n%15s","*");cout<<"按确认键翻页"; getch();
597 }
598 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
599 int nn;
600 cin>>nn;
601 while(nn<1||nn>2)
602 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>nn;}
603 int k;
604 if(nn==1)
605 {k=Output_surface_two();
606 return k;
607 }
608 else
609 return 8;
610 }
611
612
613
614 void output_worker_wage(struct workers *p1)//显示每个员工的工资;
615 {int n;
616 printf("%15s","");
617 printf("%-12d|",p1->num);
618 printf("%-9s|",p1->name);
619
620 printf("%-4d",p1->wage);
621 cout<<endl;
622
623 for(n=1;n<=80;n++)
624 cout<<"-";
625 }
626
627
628
629 int output_wage(workers_list workers_Sq)//显示员工工资情况及平均工资;
630 {printf("\n%15s","*");cout<<"请选择每页要显示的信息数,最多15条";
631 int n;
632 cin>>n;
633 while(n<1||n>15)
634 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>n;}
635 system("cls");
636 if( workers_Sq.length==0)
637 {printf("\n%15s","*");cout<<"系统中没有员工信息";
638 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
639 int nn;
640 cin>>nn;
641 while(nn<1||nn>2)
642 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>nn;}
643 int k;
644 if(nn==1)
645 {k=Output_surface_two();
646 return k;
647 }
648 else
649 return 8;
650 }
651
652 struct workers *p1;//信息的输出
653 p1=workers_Sq.head;
654 int count;
655 double sum=0;
656 int i;
657 while(p1)
658 {
659 sum+=p1->wage;p1=p1->next;
660 }
661 int nn;
662 p1=workers_Sq.head;
663 while(p1)
664 {system("cls");
665 printf(" 平均工资为:%1.2lf元/月\n",sum/workers_Sq.length);
666 for(nn=1;nn<=80;nn++)
667 cout<<"-";
668 cout<<" 职工号 |姓名 |工资(元/月)\n";
669 for(nn=1;nn<=80;nn++)
670 cout<<"-";
671 count=n;
672 while((count--)&&(p1))
673 {output_worker_wage(p1);p1=p1->next;}
674 printf("\n%15s","*");cout<<"按确认键翻页"; getch();
675 }
676 printf("\n\n%15s","*");cout<<"按1键并确认返回,按2键将退出";
677 cin>>nn;
678 while(nn<1||nn>2)
679 {printf("\n%15s","*");cout<<"输入错误,请重新输入";cin>>nn;}
680 int k;
681 if(nn==1)
682 {k=Output_surface_two();
683 return k;
684 }
685 else
686 return 8;
687 }
688
689
690 int main(int argc, char *argv[])
691 {int n=Output_surface_two();
692 workers_list workers_Sq;
693 workers_Sq.head=NULL;
694 workers_Sq.length=0;
695
696
697 while(1)
698 {
699 switch(n)
700 {case 1:n=Delete_info(workers_Sq);break;
701 case 2:n=change_info(workers_Sq);break;
702 case 3:n=sort_info(workers_Sq);break;
703 case 4:n=find_info(workers_Sq);break;
704 case 5:n=insert_info(workers_Sq);break;
705 case 6:n=output_info(workers_Sq);break;
706 case 7:n=output_wage(workers_Sq);break;
707 case 8:exit(1);break;
708 }
709 }
710
711
712 //system("PAUSE");
713 return EXIT_SUCCESS;
714 }
715
716