Смекни!
smekni.com

Разработка базы данных "Магазин товаров" (стр. 4 из 4)

{gotoxy(20,m+9);

cprintf (baza[m].naim);

cprintf(" ");

cprintf (baza[m].proizv);

cprintf(" ");

cprintf (baza[m].model);

cprintf("\n");}}}

if (l=='3')

{clrscr();

ramka();

gotoxy(25,5);

cprintf("Vvedite model' produkta");

gotoxy(30,7);

cscanf("%s",&vybor);

for (m=0;m<i;m++)

{if (!strcmp(baza[m].model,vybor))

{gotoxy(20,m+9);

cprintf (baza[m].naim);

cprintf(" ");

cprintf (baza[m].proizv);

cprintf(" ");

cprintf (baza[m].model);

cprintf("&bsol;n");}}}

getch(); getch();

goto metka1;}

else {gotoxy(27,12);

error();

getch(); getch();

goto metka5;}}

if(k=='4')

{clrscr();

ramka();

gotoxy (25,5);

cprintf("Vvedite zapis' kotoruyu hotite izmenit' :");

gotoxy (25,7);

cprintf("Tip - ");

cscanf("%s",&vtip);

gotoxy(25,8);

cprintf("Proizvoditel' - ");

cscanf("%s",&vproizv);

gotoxy(25,9);

cprintf("Model' - ");

cscanf("%s",&vmodel);

gotoxy(25,11);

cprintf("Vashi dannye prinyaty!");

getch(); getch();

for (m=0;m<i;m++)

{if (!strcmp(baza[m].naim,vtip) && !strcmp(baza[m].proizv,vproizv) && !strcmp(baza[m].model,vmodel))

{clrscr();

ramka();

gotoxy(25,5);

cprintf("Vvedite novye dannye: &bsol;n");

gotoxy(25,7);

cprintf("Tip - ");

cscanf("%s",&baza[m].naim);

gotoxy(25,8);

cprintf("Proizvoditel' - ");

cscanf("%s",&baza[m].proizv);

gotoxy(25,9);

cprintf("Model' - ");

cscanf("%s",&baza[m].model);

gotoxy(25,11);

cprintf("Zapis' izmenena");

getch(); getch();}}

goto metka1;}

if (k=='0') abort();}

else {gotoxy(27,12);

error();

getch(); getch();

goto metka1;}