Курсовая работа: Інформаційно-довідкова система
gotoxy(3,23);
printf(" ");
gotoxy(3,23);
printf("FIND: | Name-1 | Adress-2 | Phone-3 | CountF-4 | Duplom-5 | ");
cursor(1);
scanf("%d",&vub);
if((vub<1)||(vub>5)){goto mit_1;}
gotoxy(3,23);
printf(" ");
gotoxy(3,23);
printf("Find Text: ");
char s[50];
scanf("%s",&s);
for (int i=0;i<=list.count;i++)
{
char s1[50];
switch(vub)
{
case 1: strcpy(s1,list.m[i].name);break;
case 2: strcpy(s1,list.m[i].adress);break;
case 3: strcpy(s1,list.m[i].phone);break;
case 4: strcpy(s1,list.m[i].countf);break;
case 5: strcpy(s1,list.m[i].duplom);break;
}
if (strcmp(s1,s)==0)
{
gotoxy(3,pos+6);
printf(" ");
int j=i;