Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef PROG_PROG_H
- #define PROG_PROG_H
- #include <iostream>
- //all the functions go here
- using namespace std;
- struct node{
- int data;
- node *next;
- };
- class list{
- node *head, *tail;
- public:
- list();
- void push(int n);
- void insert_place(int place, int n);
- void insert_end(int n);
- void delete_start();
- void delete_place(int place);
- void delete_end();
- bool compare(node *a, node *b);
- void swap(node *a, node*b);
- void bubble_sort();
- void display();
- int size();
- };
- #endif //PROG_PROG_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement