Курсовая работа: Создание базы данных "Стадионы города" на языке C
printf ("File coldn't create");
getch ();
return;
}
fwrite (&s,sizeof (s),1,f);
fclose (f);
}
void alf () {
stadiums temp;
for (int i=0; i<Count-1; i++)
for (int j=i+1; j<Count; j++)
if ( (strcmp (strupr (s [j]. Name),strupr (s [i]. Name)) <0) || (strcmp (s [i]. Name,"") ==0)) {
temp=s [j] ;
s [j] =s [i] ;
s [i] =temp;
}
return;
}
void prin_head () {
printf ("-----------------------------------------------------------------------------\n");
printf ("| | Name | Year stadium | Capacity | Amount | Sports |\n");
printf ("-----------------------------------------------------------------------------\n");
return;
}
void prin (int i) {
char pr=' ';
printf ("|%2d |", i+1); strok++;
printf ("%15s |",s [i]. Name);
printf ("%12d |",s [i]. D_cr);