Курсовая работа: Создание базы данных "Стадионы города" на языке C
}
printf ("You have chosen record: \n");
prin_head ();
prin (num-1);
printf ("Do you want remove record? (Y\\N) \n");
if ( (getch () =='y') || (getch () =='Y')) {
strcpy (s [num-1]. Name,'\0');
s [num-1]. D_cr=0;
s [num-1]. Sapacity=0;
for (int i=0; i<s [num-1]. C_pl; i++)
strcpy (s [num-1]. N_sp [i],'\0');
s [num-1]. C_pl=0;
alf ();
Count--;
printf ("Record is removed\n"); getch ();
}
return;
}
void edit () {
tm *T; time_t tt; tt=time (NULL); T=localtime (&tt);
stadiums temp;
int num=0, i;
clrscr ();
printf ("\t\t\tEDIT RECORD\n");
prin_all ();
while (num<1||num>Count) {
printf ("Enter number record for edit: ");
scanf ("%d",&num);
}