Курсовая работа: Інформаційно-довідкова система
gotoxy(3,23);
printf(" ");
refresh_list();
}
void save_list()
{
FILE *f;
f=fopen("с:\\vuz.my","w+");
for (int i=0;i<=list.count;i++)
{
char tmp[150];
strcpy(tmp,list.m[i].name);
strcat(tmp,",");
strcat(tmp,list.m[i].adress);
strcat(tmp,",");
strcat(tmp,list.m[i].phone);
strcat(tmp,",");
strcat(tmp,list.m[i].countf);
strcat(tmp,",");
strcat(tmp,list.m[i].duplom);
fprintf(f,"%s\n",tmp);
}
fclose(f);
}
void delete_list()
{
if (page*15+pos<=list.count)
{
for (int i=page*15+pos;i<list.count;i++)