Разработка программы для создания и обработки вакансий в виде двусвязного списка, страница 9

   case 6: clrscr();

            out_of_display(begin); break;

 }

}while(inp1!=7);

delete []inp2;

}

void menu_of_find (Vacancy* &begin, Vacancy* &end)

 {

int inp1;

char *inp2=new char [25];

do {

clrscr();

cout << "FIND ELEMENTS FROM LIST OF COMPONENTS:" << endl;

cout << " 1 - city" << endl;

cout << " 2 - z/p" << endl;

cout << " 3 - education" << endl;

cout << " 4 - profession " << endl;

cout << " 5 - post" << endl;

cout << " 6 - OUT LIST OF DISPLAY" << endl;

cout << " 7 - EXIT TO GENERAL MENU" << endl;

cout <<"Input:";

cin >> inp2;

inp1=atoi(inp2);

int val;

double valf;

switch (inp1)

 { case 1:  clrscr();

            cout <<"FIND of ALL elements with city"<<endl;

            cout <<"Input of city:";

            cin >> inp2;

            cout <<endl;

            val=line_find_to_city_all(begin,inp2);

            cout << endl<<"Find of "<<val<<" elements"<<endl;

            wait_key();

            break;

   case 2:  clrscr();

            cout <<"FIND of ALL elements with z/p"<<endl;

            cout <<"Input z/p:";

            cin >> inp2;

            cout <<endl;

            val=atoi(inp2);

            val=line_find_to_min_wages_all(begin,val);

            cout << endl<<"Find of "<<val<<" elements"<<endl;

            wait_key();

            break;

   case 3:  clrscr();

            cout <<"FIND of ALL elements with education"<<endl;

            cout <<"Input of education:";

            cin >> inp2;

            cout <<endl;

            val=line_find_to_education_all(begin,inp2);

            cout << endl<<"Find of "<<val<<" elements"<<endl;

            wait_key();

            break;

   case 4:  clrscr();

            cout <<"FIND of ALL elements with profession"<<endl;

            cout <<"Input of profession:";

            cin >> inp2;

            cout <<endl;

            val=line_find_to_profession_all(begin,inp2);

            cout << endl<<"Find of "<<val<<" elements"<<endl;

            wait_key();

            break;

   case 5:  clrscr();

            cout <<"FIND of ALL elements with post "<<endl;

            cout <<"Input post:";

            cin >> inp2;

            cout <<endl;

            val=line_find_to_post_all(begin,inp2);

            cout << endl<<"Find of "<<val<<" elements"<<endl;

            wait_key();

            break;

    case 6: clrscr();

            out_of_display(begin); break;

 }

}while(inp1!=7);

delete []inp2;

}

void menu_of_find_parametr (Vacancy* &begin, Vacancy* &end)

 {

int inp1;

char *inp2=new char [25];

char *inp3=new char [25];

char *inp4=new char [25];

int inp5;

do {

clrscr();

cout << "FIND ELEMENTS FROM LIST OF COMPONENTS:" << endl;

cout << " 1 - parametr :z/p,education,profession,post" << endl;

cout << " 2 - OUT LIST OF DISPLAY" << endl;

cout << " 3 - EXIT TO GENERAL MENU" << endl;

cout <<"Input:";

cin >> inp2;

inp1=atoi(inp2);

int val;

double valf;

switch (inp1)

 { case 1:  clrscr();

            cout <<"FIND of ALL elements with this parametr"<<endl;

            cout <<"Input of education:";

            cin >> inp2;

            cout <<endl; cout <<"Input of profession:";

            cin >> inp3;

            cout <<endl; cout <<"Input of post:";