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

            cout << "Delete "<<delete_to_size_pay(begin,end,val)<<" elements"<<endl;

            wait_key();

            break;

   case 6: clrscr();

            out_of_display(begin); break;

 }

}while(inp1!=7);

delete []inp2;

}

//menu poiska

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

 {

int inp1;

char *inp2=new char [25];

do {

clrscr();

cout << "FIND ELEMENTS 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 s;

switch (inp1)

 { case 1:  clrscr();

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

            cout <<"Input of STREET:";

            cin >> inp2;

            cout <<endl;

            val=line_find_to_street_all(begin,inp2);

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

            wait_key();

            break;

   case 2:  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 3:  clrscr();

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

            cout <<"Input of NAME:";

            cin >> inp2;

            cout <<endl;

            val=line_find_to_name_all(begin,inp2);

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

            wait_key();

            break;

   case 4:  clrscr();

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

            cout <<"Input COMPETITION:";

            cin >> inp2;

            cout <<endl;

            s=atof(inp2);

            val=line_find_to_competition_all(begin,s);

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

            wait_key();

            break;

   case 5:  clrscr();

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

            cout <<"Input SIZE_PAY:";

            cin >> inp2;

            cout <<endl;

            val=atoi(inp2);

            val=line_find_to_size_pay_all(begin,val);

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

            wait_key();

            break;

   case 6: clrscr();

            out_of_display(begin); break;

 }

}while(inp1!=7);

delete []inp2;

}

//menu LICHNOE_ZADANIE

void menu_of_LICHNOE_ZADANIE (educational* &begin, educational* &end)

 {

int inp1;

char *inp2=new char [25];

do {

clrscr();

cout << "LICHNOE ZADANIE" << endl;

cout << " 1- POISK PO KONKURSU and NAME " << endl;

cout << " 2- POISK PO OPLATE and NAME " << endl;

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

cout <<"Input:";

cin >> inp2;

inp1=atoi(inp2);

int val;

double d;

switch (inp1)

 {  case 1:  clrscr();