0) {false;
} (((Rayon *) start [posray]) - gt; sublev, streetname, posstr, pos_trig, cmpstreet); (pos_trig == 0) {false;
} (((street *) ((Rayon *) start [posray]) - gt; sublev [posstr]) - gt; sublev, housenumber, poshouse, pos_trig, cmphouse); (pos_trig==0) {false;
} else {true;
} * findhouse (void ** start, QString rayname, QString streetname, QString housenum) {pos_trig, posray, posstr, poshouse; (start, rayname, posray, pos_trig, cmpray); ((( Rayon *) start [posray]) - gt; sublev, streetname, posstr, pos_trig, cmpstreet); (((street *) ((Rayon *) start [posray]) - gt; sublev [posstr]) - gt; sublev , housenum, poshouse, pos_trig, cmphouse); ((street *) ((Rayon *) start [posray]) - gt; sublev [posstr]) - gt; sublev [poshouse];
} find_item_flat (void ** start, QString rayname, QString streetname, QString housenumber, QString flatname) {postrig, posray, posstr, poshouse, posflat; (start, rayname, posray, postrig, cmpray) ; (postrig == 0) {false;
} (((Rayon *) start [posray]) - gt; sublev, streetname, posstr, postrig, cmpstreet); (postrig == 0) {false;
} (((street *) ((Rayon *) start [posray]) - gt; sublev [posstr]) - gt; sublev, housenumber, poshouse, postrig, cmphouse); (postrig==0) {false;
}(((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstr])-gt;sublev[poshouse])-gt;sublev, flatname, posflat, postrig, cmpflat); (postrig == 0) {false;
} else {true;
} * findflat (void ** start, QString rayname, QString streetname, QString housenum, QString flatnum) {postrig, posray, posstr, poshouse, posflat; (start, rayname, posray, postrig, cmpray ); (((Rayon *) start [posray]) - gt; sublev, streetname, posstr, postrig, cmpstreet); (((street *) ((Rayon *) start [posray]) - gt; sublev [posstr] ) - gt; sublev, housenum, poshouse, postrig, cmphouse);(((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstr])-gt;sublev[poshouse])-gt;sublev, flatnum, posflat, postrig, cmpflat);((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstr])-gt;sublev[poshouse])-gt;sublev[posflat];
} find_item_people (void ** start, QString rayname, QString streetname, QString housenumber, QString flatnumber, QString peoplename) {posray, posstr, poshouse, posflat, pospeople, postrig; (start, rayname, posray , postrig, cmpray); (postrig == 0) {false;
} (((Rayon *) start [posray]) - gt; sublev, streetname, posstr, postrig, cmpstreet); (postrig == 0) {false;
} (((street *) ((Rayon *) start [posray]) - gt; sublev [posstr]) - gt; sublev, housenumber, poshouse, postrig, cmphouse); (postrig==0) {false;
}(((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstr])-gt;sublev[poshouse])-gt;sublev, flatnumber, posflat, postrig, cmpflat); (postrig == 0) {false;
}(((flat*)((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstr])-gt;sublev[poshouse])-gt;sublev[posflat])-gt;sublev, peoplename, pospeople, postrig, cmppeople); (postrig == 0) {false;
} else {true;
} * findpeople (void ** start, QString rayname, QString streetname, QString housenum, QString flatnum, QString peoplename) {posray, posstr, poshouse, posflat, pospeople, postrig; (start, rayname, posray, postrig, cmpray); (((Rayon *) start [posray]) - gt; sublev, streetname, posstr, postrig, cmpstreet); (((street *) ((Rayon *) start [posray]) - gt ; sublev [posstr]) - gt; sublev, housenum, poshouse, postrig, cmphouse);(((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstr])-gt;sublev[poshouse])-gt;sublev, flatnum, posflat, postrig, cmpflat);(((flat*)((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstr])-gt;sublev[poshouse])-gt;sublev[posflat])-gt;sublev, peoplename, pospeople, postrig, cmppeople);((flat*)((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstr])-gt;sublev[poshouse])-gt;sublev[posflat])-gt;sublev[pospeople];
}
ТЕКСТ ФАЙЛА MAINWINDOW.H
# ifndef MAINWINDOW_H
# define MAINWINDOW_H
# include lt; QMainWindow gt;
# include QMessageBox Ui {MainWindow;
} MainWindow: public QMainWindow
{_ OBJECT: MainWindow (QWidget * parent=0);
~ MainWindow (); slots:
void on_call_manu_add_rayon_button_clicked (); on_lineEdit_data_1_textChanged (const QString amp;arg1);on_pushButton_addrayon_clicked();on_call_menu_add_street_button_clicked();on_lineEdit_rayname_textChanged(const QString amp;arg1);on_pushButton_next_1_clicked();on_pushButton_addstreet_clicked();on_ca...