// filename: mreview.h // // The header file for class Mreview. // This file is completely filled. NO modification is allowed. #ifndef MREVIEW_H #define MREVIEW_H #include #include using namespace std; #include "pfarrayd.h" class Mreview { public: Mreview(string ttl = "N/A"); // (1) Mreview(string ttl, double score); string getTitle() const; int numRatings() const; void addRating(double r); // (2) double aveRating() const; // (3) bool operator==(const Mreview& m2) const; // (4) bool operator<(const Mreview& m2) const; // (5) friend ostream& operator<<(ostream& out, const Mreview& m); private: string title; PFArrayD ratings; }; #endif