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;
- typedef int infotype;
- typedef struct elmList *address;
- struct elmList{
- string info;
- address next;
- };
- struct List{
- address first;
- address last;
- };
- void createList(List &L);
- address createNewElement(string X);
- void insertFirst(List &L, address P);
- void insertLast(List &L, address P);
- void inserAfter(List &L, address &Target,address P);
- void deleteFirst(List &L, address &P);
- void deleteLast(List &L, address &P);
- void deleteAfter(List &L, address Target,address &P);
- void Show(List L);
- address findInfo(List L,string name);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement