Question: What is the output if the input values are 4 and 5? #include #include using namespace std; class Movies { }; public: int rating
What is the output if the input values are 4 and 5? #include #include using namespace std; class Movies { }; public: int rating 1; void Print() { } cout < < "Rating is: " < < rating < < "stars" < < endl; bool operator! (const Movies&lhs, const Movies &rhs) { } return (1hs.rating ! rhs.rating); int main() { Movies movi; Movies mov2; int currentRating; cout < < "Enter the rating for Movie 1: " < < endl; cin>> movi.rating; cout < > mov2.rating; if (movi mov2) { movi.Print(); } else { mov2.print(); } return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
