Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef STOCKLIST
- #define STOCKLIST
- #include "stock.h"
- class StockList
- {
- private:
- Stock * list; //dynamic array of stocks
- unsigned int counter; //keeps a count of items in the list so we know where to insert
- float total_assets; //keeps a total assets amount of all stocks in the list
- void swap(int a, int b);
- void add(Stock s);
- public:
- StockList();
- ~StockList();
- bool load(const char* filename);
- unsigned int listlength() const;
- void print() const;
- void sort();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement