thissotr=firstsotr;
do{
f=1;
while (thissotr != NULL){
if (thissotr->zar<thissotr->next->zar){
tmp->zar=thissotr->zar;
thissotr->zar=thissotr->next->zar;
thissotr->next->zar=tmp->zar;
f=0;
}
thissotr=thissotr->next;
}
}
while (f==0);
}
void sort_N2()// сортування по стажу
{
int f;
sotrud *tmp;
thissotr=firstsotr;
do{
f=1;
while (thissotr != NULL){
if (thissotr->stg<thissotr->next->stg){
tmp->stg=thissotr->stg;
thissotr->stg=thissotr->next->stg;
thissotr->next->stg=tmp->stg;
f=0;
}
thissotr=thissotr->next;
}
}
while (f==0);
}
void find_N1()// пошук за Ф.І.О. працівника
{
char s[20];
cout<<"Введите Ф.И.О. для поиска:"; cin>>s;
thissotr=firstsotr;
while (thissotr !=NULL){
if(stricmp(thissotr->fio,s)==0){
cout<<" -------------------------------------------------------------------- \n";
cout<<thissotr->fio<<"\t"<<thissotr->pos<<"\t"
<<thissotr->voz<<"\t"<<thissotr->stg<<"\t"<<thissotr->zar<<"\n";
cout<<" -------------------------------------------------------------------- \n";
thissotr=thissotr->next;
}
thissotr=thissotr->next;
}
}
void find_N2()// пошук за стажем працівника
{
int s;
cout<<"Введите стаж для поиска сотрудников:"; cin>>s;
thissotr=firstsotr;
while (thissotr !=NULL){
if (thissotr->stg==s){
cout<<" -------------------------------------------------------------------- \n";