ustify">} load_flat (void ** amp; start, FILE * F, int cnt_flat) {_ file flatf; * sread; i; (i=0; i lt; cnt_flat; i ++) {( amp; flatf , sizeof (flatf), 1, F);=new flat;
((flat *) sread) - gt; number=flatf.number;
((flat *) sread) - gt; cnt_room=flatf.cnt_room;
((flat *) sread) - gt; sublev=initarray (); posadd, lop; (start, flatf.number, posadd, lop, cmpflat); _ order (start, sread, posadd) ; cntpeople=flatf.cnt_people; (cntpeople!=0) {_ peoplelist (((flat *) sread) - gt; sublev, F, cntpeople);
} 1;
} load_peoplelist (void ** amp; start, FILE * f, int cnt_people) {_ file fpeop; * poin; i; (i=0; i lt; cnt_people; i ++) {( amp; fpeop , sizeof (fpeop), 1, f);=new people;
((people *) poin) - gt; age=fpeop.age;
((people *) poin) - gt; name=fpeop.name;
((people *) poin) - gt; surname=fpeop.surname; posadd, lop; (start, fpeop.name, posadd, lop, cmppeople); _ order (start, poin, posadd) ;
} 1;
} add_rayon_tolist (void ** amp; start, QString name, QString square, QString numberzhack) {pos_ray, loop; * pnew=new Rayon;
((Rayon *) pnew) - gt; name=name;
((Rayon *) pnew) - gt; number_zhek=numberzhack;
((Rayon *) pnew) - gt; square=square;
((Rayon *) pnew) - gt; sublev=initarray (); (start, name, pos_ray, loop, cmpray); _ order (start, pnew, pos_ray);
} add_street_tolist (void ** amp; start, QString nameray, QString namestr, QString year) {pos_ray=0, pos_street=0, loop=0; (start, nameray, pos_ray, loop, cmpray ); (loop == 0) {;
} * pnew=new street;
((street *) pnew) - gt; name=namestr;
((street *) pnew) - gt; year=year;
((street *) pnew) - gt; sublev=initarray (); (((Rayon *) (start [pos_ray])) - gt; sublev, namestr, pos_street, loop, cmpstreet) ; _order (((Rayon *) start [pos_ray]) - gt; sublev, pnew, pos_street);
} add_house_tolist (void ** amp; start, QString rayname, QString streetneme, QString number, QString square) {posray, posstreet, poshouse, looppos; (start, rayname, posray, looppos, cmpray) ; (looppos == 0) {;
} (((Rayon *) start [posray]) - gt; sublev, streetneme, posstreet, looppos, cmpstreet); (looppos == 0) {;
} * pnew=new house;
((house *) pnew) - gt; number=number;
((house *) pnew) - gt; square=square;
((house*)pnew)-gt;sublev=initarray();(((street*)((Rayon*)start[posray])-gt;sublev[posstreet])-gt;sublev, number, poshouse, looppos, cmphouse); _ order (((street *) ((Rayon *) start [posray]) - gt; sublev [posstreet]) - gt; sublev, pnew, poshouse);
} add_flat_tolist (void** amp; start, QString rayname, QString streetname, QString numberhouse, QString number, QString cnt_room) {posray, posstreet, poshouse, posflat, loop; (start, rayname, posray, loop, cmpray); (loop == 0) {;
} (((Rayon *) start [posray]) - gt; sublev, streetname, posstreet, loop, cmpstreet); (loop == 0) {;
} (((street *) ((Rayon *) start [posray]) - gt; sublev [posstreet]) - gt; sublev, numberhouse, poshouse, loop, cmphouse); (loop==0) {;
} * pnew=new flat;
((flat *) pnew) - gt; number=number;
((flat *) pnew) - gt; cnt_room=cnt_room;
((flat*)pnew)-gt;sublev=initarray();(((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstreet])-gt;sublev[poshouse])-gt;sublev, number, posflat, loop, cmpflat);_order(((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstreet])-gt;sublev[poshouse])-gt;sublev, pnew, posflat);
} add_people_tolist (void ** amp; start, QString rayname, QString streetname, QString numberhouse, QString numberflat, QString name, QString surname, QString age) {posray, posstreet, poshouse, posflat, pospeople, turn; (start, rayname, posray, turn, cmpray); (turn == 0) {;
} (((Rayon *) start [posray]) - gt; sublev, streetname, posstreet, turn, cmpstreet); (turn == 0) {;
} (((street *) ((Rayon *) start [posray]) - gt; sublev [posstreet]) - gt; sublev, numberhouse, poshouse, turn, cmphouse); (turn==0) {;
}(((house*)((street*)((Rayon*)start[posray])-gt;sublev[posstreet])-gt;sublev[poshouse])-gt;sublev, numberflat, posflat, turn, cmpflat); (turn == 0) {;
} * pnew=new people;
((people *) pnew) - gt; name=name;
...