cout << " Input:";
cin >> inp2;
inp1=atoi(inp2);
switch (inp1) //obrabotka vubora
{
case 1: orend_of_street(end,begin);
clrscr();
cout << "List ordering of STREET!" << endl;
wait_key();
break;
case 2: orend_of_city(end,begin);
clrscr();
cout << "List ordering of CITY!" << endl;
wait_key();
break;
case 3: orend_of_name(end,begin);
clrscr();
cout << "List ordering of NAME!" << endl;
wait_key();
break;
case 4: orend_of_competition(end,begin);
clrscr();
cout << "List ordering of COMPETITION!" << endl;
wait_key();
break;
case 5: orend_of_size_pay(end,begin);
clrscr();
cout << "List ordering of SIZE_PAY!" << endl;
wait_key();
break;
case 6: clrscr();
out_of_display(begin); break;
}
}while(inp1!=7);
delete []inp2;
}
//menu dlya ydaleniya
void menu_of_delete (educational* &begin, educational* &end)
{
int inp1;
char *inp2=new char [25];
do {
clrscr();
cout << "DELETE ELENENTS FROM LIST OF COMPONENTS:" << endl;
cout << " 1 - Street" << endl;
cout << " 2 - City " << endl;
cout << " 3 - Name " << endl;
cout << " 4 - Competition" << endl;
cout << " 5 - Size pay " << 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 k;
switch (inp1)
{ case 1: clrscr();
cout <<"WARNING!!! Delete of ALL elements with STREET"<<endl;
cout <<"Input of STREET:";
cin >> inp2;
cout << "Delete "<<delete_to_street(begin,end,inp2)<<" elements"<<endl;
wait_key();
break;
case 2: 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 3: clrscr();
cout <<"WARNING!!! Delete of ALL elements with NAME"<<endl;
cout <<"Input of NAME:";
cin >> inp2;
cout << "Delete "<<delete_to_name(begin,end,inp2)<<" elements"<<endl;
wait_key();
break;
case 4: clrscr();
cout <<"WARNING!!! Delete of ALL elements with COMPETITION"<<endl;
cout <<"Input COMPETITION:";
cin >> inp2;
k=atof(inp2);
cout << "Delete "<<delete_to_competition(begin,end,k)<<" elements"<<endl;
wait_key();
break;
case 5: clrscr();
cout <<"WARNING!!! Delete of ALL elements with SIZE_PAY"<<endl;
cout <<"Input SIZE_PAY:";
cin >> inp2;
val=atoi(inp2);
Уважаемый посетитель!
Чтобы распечатать файл, скачайте его (в формате Word).
Ссылка на скачивание - внизу страницы.