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? 

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!