="justify">}
// function.cpp
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include namespace std; char ch; int size; fs = 0; PRICE {magazin [30], tovar [30]; kolvo, cena, id;
} list [300], tmp, fin [300]; load (char * base); save (char * base); add (char * base); view (char * base); delet (char * base); sort (char * base); sort1 (); stoimtovara (char * base); tovarpokolvo (char * base); magazintovar (char * base); replace (int); open (char * base) { (base); <<"Vibirite deistvie:" <
}} sort (char * base) {("cls"); <<"Please select field: r n1.Po alfavity 2.Stoimostb tovara 3.Tovar po kolichestvy 4.Tovari po magaziny n5.Back to sort1 (); break; '2 ': stoimtovara (base); break; '3': tovarpokolvo (base); break; '4 ': magazintovar (base); break; '5': open (base); break; : exit (0);} (base); <<" r nSorting ... OK! View base "; (); (base);} sort1 () {j; (j = 0; j 0) replace (j);
} stoimtovara (char * base) {("cls"); <<"Please enter find record: r n"; <<"Vvedite tovar:" ; <
} (vv == 0) cout <<"Takogo tovara net"; = - i; (tmp.tovar, "");. cena = 0; (); z, l, p = 0; <<"ID"; <<"Stoimostb tovara"; <
{system ("cls"); <<"Please enter find record: r n"; <<"Vvedite pervyu bykvy nazvania magazina:"; t ;>> t; z = 0; int p = 0; j = 0; (; j <= size; j + +)
{if (list [j]. magazin [0] == t)
{z + +; <
} (z == 0) {<<"net sovpadenii"; cout <<" n"; <
} (); (base);
} tovarpokolvo (char * base) {("cls"); <<"Please enter find record: r n"; <<"Vvedite kolichestvo tovara: "<
} (vv == 0) cout <<"Takogo kolichestva tovara net"; = - i; (tmp.tovar, "");. kolvo = 0; () ; z, l, p = 0; <<"ID"; <<"Tovar opredelennogo kolichestva"; <