00001 #ifndef CHECK_H 00002 #define CHECK_H 00003 00004 #include <sstream> 00005 #include "date.h" 00006 00015 class Check 00016 { 00017 00018 friend ostream &operator<<( ostream &out, const Check &e ); 00019 friend istream &operator>>( istream &in, Check &e ); 00020 00021 public: 00022 Check(); 00023 void setAmount( double amount ); 00024 double getAmount() const; 00025 void input( istream &in ); 00026 void output( ostream &out ) const; 00027 00028 private: 00030 Date date; 00032 double amount; 00034 string payee; 00035 00036 }; // Check class 00037 00038 #endif 00039