Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #define first(L) L.first
- #define next(P) P->next
- #define info(P) P->info
- using namespace std;
- const int S = 50;
- struct masakan {
- int nomor;
- string nama;
- int sisaPorsi;
- };
- typedef masakan infotype;
- struct ElmtMsk;
- typedef ElmtMsk* address;
- struct ElmtMsk {
- infotype info;
- address next;
- };
- struct List {
- address first;
- };
- void createNewList(List &L);
- void insertLast(List &L, address p);
- void deleteFirst(List &L, address &p);
- void deleteLast(List &L, address &p);
- void deleteAfter(List &L, address prec, address &p);
- bool isEmpty(List L);
- infotype newMasakan(int no,string nama);
- address newElementList(infotype m);
- void addNelementList(List &L,int N);
- void showAllFood(List L);
- void showAvailableFood(List L);
- address findMinRemaining(List L);
- void showBestSeller(List L);
- void deleteAllSoldOut(List &L);
- void transaction(List &L,int no,int porsi);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement