Курсовая работа: Создание базы данных "Стадионы города" на языке C
prin_head ();
for (i=0; i<Count; i++)
if (s [i]. Sapacity<cap) prin (i);
break;
case '4': printf ("Enter capacity (>=): ");
scanf ("%d",&cap);
prin_head ();
for (i=0; i<Count; i++)
if (s [i]. Sapacity>=cap) prin (i);
break;
case '5': printf ("Enter capacity (<=): ");
scanf ("%d",&cap);
prin_head ();
for (i=0; i<Count; i++)
if (s [i]. Sapacity<=cap) prin (i);
break;
}
getch ();
return;
}
void find () { char sport [15] ; int i,j;
clrscr ();
printf ("\t\t\tSEAL KIND OF SPORT\n");
printf ("Enter sport (no more 15 symbols): ");
scanf ("%s",sport);
prin_head ();
for (i=0; i<Count; i++)
for (j=0; j<s [i]. C_pl; j++)
if (strcmp (strupr (s [i]. N_sp [j]),strupr (sport)) ==0) prin (i);