Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void StudentList::ODINTREN()
- {
- int i = 0;
- string vvod;
- //string dopFam, dopIMYA, dopOtches;
- cout << "Для поиска студентов определённого тренера введите его введите ФИО" << endl;
- cin.ignore(32767, '\n');
- getline(cin, vvod);
- //cin >> dopFam;
- //cin >> dopIMYA;
- //cin >> dopOtches;
- Student* current = head;
- while (current)
- {
- if (vvod.find(current->FAM) != string::npos || vvod.find(current->IMYA) != string::npos || vvod.find(current->OTCHESTREN) != string::npos)
- {
- cout << "|" << setw(2) << "№" << setw(2) << " | " << setw(12) << current->FAM << setw(12) << current->IMYA << setw(12) << current->OTCHES << setw(2) << "|" << setw(1) << current->Pol << setw(2) << "|" << setw(12) << current->Sport << setw(2) << "|" << setw(12) << current->Group << setw(2) << "|" << setw(12) << current->STREET << setw(4) << current->DOM << setw(4) << current->FLAT << setw(2) << "|" << setw(12) << current->FAMTREN << setw(12) << current->IMYATREN << setw(12) << current->OTCHESTREN << setw(2) << "|" << setw(2) << current->Med << setw(2) << "|" << setw(2) << current->Oplat << setw(2) << "|" << endl;
- cout << "______________________________________________________________________________________________" << endl;
- i++;
- }
- current = current->link;
- }
- if (i == 0)
- cout << "К данному тренеру ещё не записались" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement