Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef LIST
- #define LIST
- using namespace std;
- /*
- struct ListItem {
- int year;
- double flow;
- };
- */
- struct Node {
- int year;
- double flow;
- Node *next;
- };
- class Flowlist{
- public:
- Flowlist();
- //Flowlist(const Flowlist& rhs);
- //~Flowlist();
- void insert(Node*);
- Node* read_item(int);
- //get_item();
- //returns year in a particular node
- int get_year(int);
- //returns flow in a particular node
- double get_flow(int);
- bool year_exists(int);
- void remove(int);
- private:
- Node *headM;
- Node *search;
- //void destroy();
- Node* find_year(int);
- //Deallocate all nodes, set headM to zero
- //void copy(const Flowlist& source);
- }Flowlist;
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement