Advertisement
Guest User

stock.h

a guest
Jul 30th, 2012
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #ifndef STOCK
  2. #define STOCK
  3. class Stock
  4. {
  5.     private:
  6.         std::string symbol;
  7.         float openingPrice, closingPrice;
  8.         float todayHigh, todayLow;
  9.         float prevClose;
  10.         unsigned int volume;
  11.  
  12.     public:
  13.         std::string get_symbol() const;
  14.         float get_openingPrice() const;
  15.         float get_closingPrice() const;
  16.         float get_todayHigh() const;
  17.         float get_todayLow() const;
  18.         float get_prevClose() const;
  19.         unsigned int get_volume() const;
  20.         float today_gain() const;
  21.         bool operator >(Stock &right) const;
  22.         friend std::ifstream& operator>>(std::ifstream& fin, Stock& stock);
  23. };
  24. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement