} fr (struct student * ptr)
{(ctrl.nb == M)
{> prior = NULL;> next = NULL;. fbeg-> prior = ptr;. fbeg = ptr;
}
{> prior = NULL;> next = ctrl.fbeg;. fbeg-> prior = ptr;. fbeg = ptr;
}. nb -;. nf + +, 0,
} student * find (char * nam)
{i; student * ptf;
ptf = ctrl.bbeg; (i = 0; i
{((strcmp (nam, ptf-> name)) == 0) ptf; = ptf-> next;
} NULL;
} delet (void)
{nam [20]; i; student * ptr; ("--------------------------" ;); ("| Funkcia udalenia elementa |"); ("--------------------------- n"); (ctrl.nb == 0)
{("Spicok zaniatih elementov pust n"); -1;
} ("Vvedite Familiu: n"); ("% s", nam); ((ptr = find (nam)) == 0)
{("Familia ne neidena n");
return -1;
} (ptr == ctrl.bbeg)
{(ctrl.nb == 1)
{. bend = NULL; (ptr); 0;
}
{. bbeg = ptr-> next;. bbeg-> prior = NULL; (ptr); 0;
}
}
{(ptr == ctrl.bend)
{> prior-> next = NULL;. bend = ptr-> prior; (ptr); 0;
}
{> prior-> next = ptr-> next;> next-> prior = ptr-> prior; (ptr); 0;
}
}
} input (void)
{student * ptr; ("-------------------------"); ("| funkcia vstavki elemntov | "); (" ---------------------------- n n "); (ctrl.nf = = 0)
{("Svobodnih elementov net n"); -1;
} {= ctrl.fbeg; ("Vvedite familiu:"); ("% s", ptr-> name); ("Vvedite iniciali:"); ( "% s", ptr-> inik); ("Vvedite curs:"); ("% d", & ptr-> curs); ("Vvedite fakultet:"); ( "% s", ptr-> fak); ("Vvedite naimenovanie specialnosti:"); ("% s", ptr-> jobname); ("Vvedite cod gruppi:"); ( "% s", ptr-> job); ("Vvedite uspevaemost:"); ("% d", & ptr-> usp); (ctrl.nf == 1)
}
}. nb + +;. nf -; 0;
}} print (void)
{i; student * ptr; = ctrl.bbeg; ("DATEBASE " STUDENT " n n"); (ctrl.nb == 0)
{("__________________ n"); ("| Baza dannih pusta | n"); ("---------------- - n n n "); -1;
{("|% 2d |% 15s |", i +1, ptr-> name); ("% 4s |", ptr-> inik); ( "% 1d |", ptr-> curs); ("% 5s |", ptr-> fak); ("% 15s |", ptr-> jobname); (" % 7s | ", ptr-> job); ("
} (" n Obshee ch...