Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef STOCK
- #define STOCK
- class Stock
- {
- private:
- std::string symbol;
- float openingPrice, closingPrice;
- float todayHigh, todayLow;
- float prevClose;
- unsigned int volume;
- public:
- std::string get_symbol() const;
- float get_openingPrice() const;
- float get_closingPrice() const;
- float get_todayHigh() const;
- float get_todayLow() const;
- float get_prevClose() const;
- unsigned int get_volume() const;
- float today_gain() const;
- bool operator >(Stock &right) const;
- friend std::ifstream& operator>>(std::ifstream& fin, Stock& stock);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement