//создать массив структур о маршрутах #include #include #include using namespace std; int main() { int i,n,np; bool priz=true; struct { string np; string kp; int nom; } marsh[8]; // заполнение массива и вывод на экран for (int i=0; i<8; i++) { cout<<"record "<>marsh[i].np; cout<<"to: "; cin>>marsh[i].kp; cout<<"nom: "; cin>>marsh[i].nom; } //сортировка массива по полю nom while (priz) { priz=false; for (int i=1; i<8; i++) { if (marsh[i].nom>n; i=0; while ((marsh[i].nom!=n) and (i<8)) i++; if (i==8) cout<>np; if (np==0) break; } cout<