Курсовая работа: Создание базы данных "Стадионы города" на языке C
strupr (s [Count-1]. Name);
do {
printf ("Enter Date of construction: ");
scanf ("%d",&s [Count-1]. D_cr);
}while ( (s [Count-1]. D_cr<1) || (s [Count-1]. D_cr> (T->tm_year+1900)));
do {
printf ("Enter sapacity of stadium: ");
scanf ("%d",&s [Count-1]. Sapacity);
}while (s [Count-1]. Sapacity<1);
do {
printf ("Enter Amount platforms (no more 10): ");
scanf ("%d",&s [Count-1]. C_pl);
} while (s [Count-1]. C_pl<1||s [Count-1]. C_pl>10);
for (int i=0; i<s [Count-1]. C_pl; i++) {
printf ("Enter sport%d (no more 15 symbols): ", i+1);
scanf ("%s",s [Count-1]. N_sp [i]);
strupr (s [Count-1]. N_sp [i]);
}
alf ();
printf ("New record is added\n"); getch ();
return;
}
void remov () {
int num=0;
clrscr ();
printf ("\n\t\t\t\tREMOVE RECORD\n");
prin_all ();
while (num<1||num>Count) {
printf ("Enter number record for edit: ");