Advertisement
ChaeYuriya

DLL.H

Nov 2nd, 2024 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.94 KB | None | 0 0
  1. #include <iostream>
  2. #define first(L) L.first
  3. #define next(P) P->next
  4. #define prev(P) P->prev
  5. #define info(P) P->info
  6. #define judul(P) P->judul
  7. using namespace std;
  8.  
  9. typedef int infotype;
  10. typedef struct elmList *address;
  11.  
  12. struct elmList{
  13.     infotype info;
  14.     string judul;
  15.     address next;
  16.     address prev;
  17. };
  18.  
  19. struct List{
  20.     address first;
  21.     address last;
  22. };
  23.  
  24. address getSongAddress(string judul,List L);
  25. bool isEmpty(List L);
  26. void createList(List &L);
  27. void createNewElement(infotype X,address &P);
  28. void createNewSong(infotype ID,string X,address &P);
  29. void insertFirst(List &L, address P);
  30. void inserAfter(List &L, address &Target,address P);
  31. void insertLast(List &L, address P);
  32. void deleteFirst(List &L, address &P);
  33. void deleteAfter(List &L, address &Target,address &P);
  34. void deleteLast(List &L, address &P);
  35. void concat(List L1, List L2, List &L3);
  36. void removeLagu(string judul,List &L);
  37. void printInfo(List L);
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement