Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <iostream>
- #include <cstdio>
- #include <cstdlib>
- using namespace std;
- struct node{
- int info;
- float price;
- struct node *next;
- }*start;
- class linked_list{
- public:
- node* create_node(int, float);
- void into_list(int, float);
- void delete_pos(int);
- int search(int);
- void sort();
- void reverse();
- void display();
- linked_list(){
- start = NULL;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement