constk

For Andrew

Sep 17th, 2020 (edited)
117
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void StudentList::FIND()
  2. {
  3.     //string dopFam, dopIMYA, dopOtches;
  4.     string vvod;
  5.     cout << "Для поиска студента введите его введите ФИО" << endl;
  6.     cin.ignore(32767, '\n');
  7.     getline(cin, vvod);
  8.     //cin >> dopFam;
  9.     //cin >> dopIMYA;
  10.     //cin >> dopOtches;
  11.     Student* current = head;
  12.     while (current)
  13.     {
  14.         if (vvod.find(current->FAM) != string::npos || vvod.find(current->IMYA) != string::npos || vvod.find(current->OTCHESTREN) != string::npos)
  15.         {
  16.             cout << "________________________________________________________________________________________" << endl;
  17.             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;
  18.             cout << "________________________________________________________________________________________" << endl;
  19.         }
  20.         current = current->link;
  21.     }
  22. }
RAW Paste Data