Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

I have map of Attributes and to count the number of attributes present in my program(c++). for(std::map::iterator it = Attribute.begin(); it != Attribute.end(); ++it) cout << it->first << ": " << it->second << endl; I use a for loop to print it out with the number of count. But now I want to sort the the count of attributes in descending order n I am not able to think how ? Can some one please help me

Computer Science
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer

SIGN UP FOR FREE
@experimentX : hey can u pls help me out with this ?
i don't do c++ ...
do u know anyone online who does c++ ?

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

tell me roughly what are you trying to do ??
my program is to read an HTML code and do couple of things and oe of them is to count the attributes in the HTML code and sort them in descending order I counted the attributes using maps but now i dnt kn how to sort them
@ParthKohli : hey can u help me with this please ?
do you know what Regex is ??
kinda
yep .. use regex and use stack to keep track of structure.
but I am not allowed to use regex
@Callisto : any help on this ?
do you just want to sort them??
i counted it using maps and yea now i want to sort them in descending order of the count
@.Sam. : hey can help on this ?
@timo86m pls help me on this
make a list ... there are couple of sorting algorithms. describe roughly ... how are your attributes going to look ,
sorry dude i dont know that much yet :(
are you trying to sort them on the basis of their precedence or ?? like comes first and comes later??

Not the answer you are looking for?

Search for more explanations.

Ask your own question