Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer soon as you can. thank you Which XXX will give the following output: 50, Hewlett 50, Packard 33, Alison 29 , Philips #include

image text in transcribed

image text in transcribedplease answer soon as you can. thank you

Which XXX will give the following output: 50, Hewlett 50, Packard 33, Alison 29 , Philips \#include \#include \#include \#include using namespace std; class People \{ public: People () : age (0) \{\} People(int age, string name) \{ this->age = age; this->name = name; \} int age; string name; \} bool Greater (const Peoples a, const Peoples b) \{ if (a.age ==b.age ) return a. name > b.age; \} a. sort(vecPeople.begin(), vecPeople.end(),vecPeople); b. sort(vecPeople.end(), vecPeople.begin(), Greater); c. sort(vecPeople.begin(), vecPeople.end(),Greater); d. sort(vecPeople.end(),vecPeople.begin(),vecPeople)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

What do you mean by underwriting of shares ?

Answered: 1 week ago

Question

Define "Rights Issue".

Answered: 1 week ago