#include #include using namespace std; class Note { public: string text() const; void print(); Note(int time, string t) : _msTimeStamp(time), _text(t) { } private: string _text; int _msTimeStamp; }; void Note::print() { prDate(_msTimeStamp); cout << endl; cout << _text << endl; } class NoteBook { public: void add(Node *n) { _notes.push_back(n); } void print() { for(auto note_pointer : _notes) note_pointer->print(); } private: list _notes; };