Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #ifndef PROG_PROG_H
  2. #define PROG_PROG_H
  3.  
  4. #include <iostream>
  5.  
  6. //all the functions go here
  7. using namespace std;
  8.  
  9. struct node{
  10. int data;
  11. node *next;
  12. };
  13.  
  14. class list{
  15. node *head, *tail;
  16. public:
  17. list();
  18. void push(int n);
  19. void insert_place(int place, int n);
  20. void insert_end(int n);
  21. void delete_start();
  22. void delete_place(int place);
  23. void delete_end();
  24. bool compare(node *a, node *b);
  25. void swap(node *a, node*b);
  26. void bubble_sort();
  27. void display();
  28. int size();
  29. };
  30. #endif //PROG_PROG_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement