Tải bản đầy đủ (.docx) (13 trang)

Code quản lý thuốc

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (28.33 KB, 13 trang )

<span class="text_page_counter">Trang 4</span><div class="page_container" data-page="4">

void xuatThuoc(THUOC a){// ham xuat 1 loai thuoc ko tieu de

Node* SearchByMaThuoc(List L, string id){ // tim theo MaThuoc Node* pthuoc = L.Head;

</div><span class="text_page_counter">Trang 5</span><div class="page_container" data-page="5">

return NULL; }

Node* SearchByTenThuoc(List L, string ten){ // tim theo TenThuoc Node* pthuoc = L.Head;

Node* SearchByGia(List L, int gia){ // tim theo Gia Node* pthuoc = L.Head;

Node* SearchMaxPrice(List L){ // tim Thuoc gia cao nhat Node* pthuoc = L.Head;

int i = pthuoc->info.giaThuoc; string ma = pthuoc->info.maThuoc; pthuoc = pthuoc->next;

while(pthuoc!= NULL){

</div><span class="text_page_counter">Trang 6</span><div class="page_container" data-page="6">

double AvgPrice(List L){// tinh trung binh gia tien cua kho thuoc Node* pthuoc = L.Head;

</div><span class="text_page_counter">Trang 7</span><div class="page_container" data-page="7">

Node* SearchMinPrice(List L){ // tim Thuoc gia thap nhat Node* pthuoc = L.Head;

</div><span class="text_page_counter">Trang 9</span><div class="page_container" data-page="9">

cout<<"VUI LONG CHON 1 MUC: "<<endl; cout<<"1. Nhap DS Thuoc"<<endl; cout<<"2. Xuat DS Thuoc"<<endl; cout<<"3. Tim theo Ma"<<endl; cout<<"4. Tim theo Ten"<<endl; cout<<"5. Tim theo Gia"<<endl;

cout<<"6. Tim thuoc co gia cao nhat"<<endl; cout<<"7. Tim thuoc co gia thap nhat"<<endl;

cout<<"8. Tinh gia tien trung binh cua kho thuoc"<<endl; cout<<"9. Sap xep giam dan theo Gia thuoc"<<endl; cout<<"10. Thong ke % theo nha cung cap"<<endl;

</div>

Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×