Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #define first(L) L.first
- #define last(L) L.last
- #define next(P) P->next
- #define prev(P) P->prev
- #define info(P) P->info
- using namespace std;
- struct driver {
- string name;
- float rating;
- };
- typedef driver infotype;
- typedef struct elmList *address;
- struct elmList{
- infotype info;
- address next;
- address prev;
- };
- struct List{
- address first;
- address last;
- };
- address createNewElement(string name,float rating);
- void CreateList(List &L);
- void InsertFirst(List &L,address P);
- void DeleteFirst(List &L,address &P);
- void ShowList(List &L);
- void Reset(List &L);
- void SplitData(float N,List &L,List &under,List &upper);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement