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);
switch (inp1)
{ case 1: orend_of_city(end,begin);
clrscr();
cout << "List orending of city!" << endl;
wait_key();
break;
case 2: orend_of_min_wages(end,begin);
clrscr();
cout << "List orending of z/p!" << endl;
wait_key();
break;
case 3: orend_of_education(end,begin);
clrscr();
cout << "List orending of education!" << endl;
wait_key();
break;
case 4: orend_of_profession(end,begin);
clrscr();
cout << "List orending of profession!" << endl;
wait_key();
break;
case 5: orend_of_post(end,begin);
clrscr();
cout << "List orending of post!" << endl;
wait_key();
break;
case 6: clrscr();
out_of_display(begin); break;
}
}while(inp1!=7);
delete []inp2;
}
void menu_of_delete (Vacancy* &begin, Vacancy* &end)
{
int inp1;
char *inp2=new char [25];
do {
clrscr();
cout << "DELETE ELENENTS 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 <<"WARNING!!! Delete of ALL elements with city"<<endl;
cout <<"Input of city:";
cin >> inp2;
cout << "Delete "<<delete_to_city(begin,end,inp2)<<" elements"<<endl;
wait_key();
break;
case 2: clrscr();
cout <<"WARNING!!! Delete of ALL elements with z/p"<<endl;
cout <<"Input z/p:";
cin >> inp2;
val=atoi(inp2);
cout << "Delete "<<delete_to_min_wages(begin,end,val)<<" elements"<<endl;
wait_key();
break;
case 3: clrscr();
cout <<"WARNING!!! Delete of ALL elements with education"<<endl;
cout <<"Input of education:";
cin >> inp2;
cout << "Delete "<<delete_to_education(begin,end,inp2)<<" elements"<<endl;
wait_key();
break;
case 4: clrscr();
cout <<"WARNING!!! Delete of ALL elements with profession"<<endl;
cout <<"Input profession:";
cin >> inp2;
cout << "Delete "<<delete_to_profession(begin,end,inp2)<<" elements"<<endl;
wait_key();
break;
case 5: clrscr();
cout <<"WARNING!!! Delete of ALL elements with post"<<endl;
cout <<"Input post:";
cin >> inp2;
cout << "Delete "<<delete_to_post(begin,end,inp2)<<" elements"<<endl;
wait_key();
break;
Уважаемый посетитель!
Чтобы распечатать файл, скачайте его (в формате Word).
Ссылка на скачивание - внизу страницы.