scanf("%d",&worker[j].yiliaobaoxian); printf("\nafter modify:%d",worker[j].yiliaobaoxian);break; case 7:printf("\nbefore modify:%d",worker[j].gongjijin); printf("\nchange to:"); scanf("%d",&worker[j].gongjijin); printf("\nafter modify:%d",worker[j].gongjijin);break; default:printf("Error!choice again!!\n");break; } getchar(); printf("\n"); f2(); worker[j].sum=worker[j].jibengongzi+worker[j].zhiwugongzi+worker[j].jintie -worker[j].yiliaobaoxian-worker[j].gongjijin; // 职工的总工资 output(j); printf("\nSave it?\n\n1.Yes 2.No\n"); // 询问是否保存修改后的信息 scanf("%d",&i); if(i==1) save(n); // 保存修改后的信息 printf("\nPress any key to back!"); // 返回到菜单 getchar(); menu(); } void Search() // 查找函数{ int i,j=-1,k,d,n;char m[20]; n=P(); system("cls"); // 清屏 printf("Choose the way you want to search:\n"); // 选择通过何种方式查找信息