#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
class sort_map
	string key;
	int val;
bool Sort_by(const sort_map& a ,const sort_map& b)
	return a.val < b.val;
int main()
	map<string,int> d;
	map<string,int>::iterator it;
	vector< sort_map > v;
	vector< sort_map >::iterator itv;
	sort_map sm;
	d["a"] = 5; d["b"] = 3; d["c"] = 9; d["d"] = 7; d["e"] = 1; d["f"] = 13; d["g"] = 11;
	for (it = d.begin(); it != d.end(); ++it)
		sm.key = (*it).first; sm.val = (*it).second;
	for (itv = v.begin(); itv != v.end(); ++itv)
		cout << (*itv).key << " : " << (*itv).val << endl;
	cout << "sorted" << endl;
	for (itv = v.begin(); itv != v.end(); ++itv)
		cout << (*itv).key << " : " << (*itv).val << endl;
	return 0;

“CMAP Sort”의 129개의 댓글

  1. I simply want to say I am beginner to blogs and definitely loved your website. Almost certainly I’m likely to bookmark your blog . You absolutely have beneficial well written articles. Thank you for sharing your website.

  2. Undeniably believe that which you stated. Your favorite reason appeared to be on the web the simplest thing
    to be aware of. I say to you, I definitely
    get annoyed while people consider worries that
    they just do not know about. You managed to hit the nail
    upon the top as well as defined out the whole thing without having side effect
    , people could take a signal. Will probably be back to get more.

  3. I just want to say I am just beginner to blogging and honestly enjoyed you’re blog site. Likely I’m want to bookmark your blog post . You definitely have amazing well written articles. Appreciate it for sharing your web site.

  4. 핑백: axiolabs pills

  5. 핑백: game dua ngua dat cuoc

  6. I do accept as true with all of the ideas you’ve presented for your post. They are very convincing and will certainly work. Nonetheless, the posts are very short for novices. May you please extend them a bit from subsequent time? Thanks for the post.

  7. I just want to tell you that I’m very new to blogs and truly savored this web page. Most likely I’m going to bookmark your site . You surely come with really good well written articles. Bless you for revealing your website.

  8. Thank you for any other informative web site. Where else may I am getting that kind of info written in such a perfect manner? I have a venture that I am simply now working on, and I’ve been on the glance out for such information.

  9. Somebody necessarily help to make critically articles I would state. That is the first time I frequented your web page and thus far? I amazed with the analysis you made to make this actual submit amazing. Magnificent activity!

  10. Hey! Quick question that’s totally off topic. Do you know how to make your site mobile friendly? My blog looks weird when viewing from my iphone4. I’m trying to find a template or plugin that might be able to fix this issue. If you have any recommendations, please share. With thanks!

  11. Hey there would you mind stating which blog platform you’re using? I’m looking to start my own blog soon but I’m having a difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then most blogs and I’m looking for something completely unique. P.S Sorry for being off-topic but I had to ask!

  12. I just want to say I am just all new to weblog and definitely liked you’re web page. Likely I’m want to bookmark your blog . You actually have superb article content. Thanks for sharing with us your blog site.

  13. I actually wanted to compose a simple message to be able to appreciate you for those amazing suggestions you are posting at this site. My long internet lookup has at the end of the day been compensated with brilliant information to go over with my company. I would state that that most of us readers actually are very much fortunate to live in a notable community with very many wonderful people with useful ideas. I feel truly blessed to have come across your webpages and look forward to some more fabulous moments reading here. Thank you again for all the details.

  14. I seriously love your website.. Very nice colors & theme. Did you create this site yourself? Please reply back as Iím hoping to create my own site and want to learn where you got this from or just what the theme is named. Cheers!

  15. This is the proper blog for anybody who hopes to learn about this topic. You know a whole lot its almost tough to argue along (not that I actually would want…HaHa). You certainly put a whole new spin for a topic thats been written about for years. Great stuff, just fantastic!

  16. I cherished as much as you’ll obtain performed right here. The caricature is tasteful, your authored subject matter stylish. however, you command get got an impatience over that you wish be turning in the following. in poor health surely come further earlier once more as precisely the similar just about very regularly inside case you defend this hike.

  17. hey there and thank you for your information ¡V I¡¦ve certainly picked up something new from right here. I did however expertise some technical points using this site, since I experienced to reload the website a lot of times previous to I could get it to load properly. I had been wondering if your web host is OK? Not that I am complaining, but sluggish loading instances times will sometimes affect your placement in google and can damage your high quality score if advertising and marketing with Adwords. Anyway I am adding this RSS to my e-mail and could look out for much more of your respective intriguing content. Ensure that you update this again very soon..

  18. An intriguing discussion is definitely worth comment. I believe that you should write more on this subject, it might not be a taboo matter but typically folks don’t discuss such subjects. To the next! Kind regards.

  19. Thank you for making the effort to talk about this situation, I think highly with this complete or absolutely adore examining read more about this amazing theme. When potential, while obtain abilities, is it possible you opinions improving your ultimate website by having in depth specifics? This is very great for anyone.

  20. I absolutely love your website.. Excellent colors & theme. Did you build this website yourself? Please reply back as I’m hoping to create my own website and would like to learn where you got this from or just what the theme is named. Cheers!

  21. Generally I do not read post on blogs, but I would like to say that this write-up very pressured me to take a look at and do it! Your writing style has been surprised me. Thank you, very nice article.

  22. I happen to be commenting to let you know of the impressive discovery my daughter developed browsing your site. She even learned plenty of pieces, with the inclusion of how it is like to possess a great teaching nature to make the others effortlessly understand specified grueling subject matter. You actually exceeded our own expected results. I appreciate you for imparting those essential, healthy, revealing not to mention fun tips about the topic to Kate.

  23. 핑백: nằm mơ thấy rụng tóc

  24. The subsequent time I learn a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, however I actually thought youd have something interesting to say. All I hear is a bunch of whining about something that you could fix should you werent too busy searching for attention.

  25. Aw, this was an incredibly good post. Finding the time and actual effort to generate a great article… but what can I say… I procrastinate a lot and never seem to get anything done.

  26. Woah! I’m really enjoying the template/theme of this site. It’s simple, yet effective. A lot of times it’s hard to get that “perfect balance” between user friendliness and visual appearance. I must say you have done a excellent job with this. In addition, the blog loads extremely quick for me on Opera. Outstanding Blog!

  27. Hey There. I discovered your blog the usage of msn. That is an extremely well written article. I’ll be sure to bookmark it and return to learn more of your helpful info. Thanks for the post. I will definitely comeback.

  28. Hello there! I simply want to offer you a big thumbs up for your excellent information you’ve got here on this post. I am coming back to your web site for more soon.

  29. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why waste your intelligence on just posting videos to your site when you could be giving us something enlightening to read?

  30. This web site is usually a walk-through for all of the information it suited you in regards to this and didn’t know who to question. Glimpse here, and you’ll definitely discover it.

  31. 핑백: what is functional testing

  32. Thanks for discussing your ideas. Another thing is that learners have a selection between national student loan along with a private education loan where it really is easier to select student loan debt consolidation than in the federal education loan.

  33. Hi, I do believe this is a great website. I stumbledupon it 😉 I may come back yet again since I saved as a favorite it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

  34. Thank you a lot for giving everyone a very breathtaking opportunity to read articles and blog posts from this site. It’s always so nice plus full of a good time for me and my office fellow workers to visit your web site more than 3 times a week to learn the latest tips you will have. And of course, I am also always contented with your remarkable tips served by you. Some 4 facts in this posting are honestly the most impressive we have had.

  35. An outstanding share! I have just forwarded this onto a coworker who had been doing a little homework on this. And he in fact bought me dinner because I found it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanks for spending the time to talk about this issue here on your blog.

  36. I figured out more interesting things on this fat reduction issue. Just one issue is that good nutrition is tremendously vital while dieting. A big reduction in junk food, sugary food items, fried foods, sugary foods, red meat, and white colored flour products could possibly be necessary. Retaining wastes harmful bacteria, and contaminants may prevent targets for losing weight. While specific drugs briefly solve the challenge, the awful side effects are not worth it, and they never give more than a short-lived solution. It can be a known incontrovertible fact that 95 of fad diet plans fail. Many thanks sharing your ideas on this web site.

  37. Thanks for expressing your ideas. A very important factor is that pupils have a choice between fed student loan and a private education loan where it really is easier to opt for student loan consolidating debts than in the federal education loan.

  38. Can I simply just say what a comfort to uncover a person that genuinely knows what they are talking about on the internet. You definitely understand how to bring a problem to light and make it important. More people have to check this out and understand this side of the story. I was surprised that you are not more popular given that you surely have the gift.

  39. Hi, I do believe this is a great website. I stumbledupon it 😉 I will come back once again since I bookmarked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

  40. I’m impressed, I have to admit. Seldom do I come across a blog that’s both educative and amusing, and let me tell you, you’ve hit the nail on the head. The issue is an issue that not enough men and women are speaking intelligently about. I am very happy I stumbled across this in my hunt for something concerning this.

  41. This is the perfect site for anybody who really wants to understand this topic. You know so much its almost hard to argue with you (not that I personally will need to…HaHa). You definitely put a fresh spin on a subject that has been discussed for ages. Great stuff, just wonderful.

  42. I do trust all of the ideas you’ve introduced for your post. They’re very convincing and will definitely work. Still, the posts are very short for beginners. May you please prolong them a bit from next time? Thank you for the post.

  43. A motivating discussion is worth comment. There’s no doubt that that you ought to publish more on this topic, it might not be a taboo subject but usually people do not discuss these subjects. To the next! Best wishes!

  44. Somebody essentially help to make seriously articles I would state. This is the very first time I frequented your website page and thus far? I surprised with the research you made to make this particular publish incredible. Fantastic job!

  45. What i do not understood is actually how you’re not actually much more well-liked than you might be right now. You are so intelligent. You realize therefore significantly relating to this subject, made me personally consider it from so many varied angles. Its like men and women aren’t fascinated unless it’s one thing to do with Lady gaga! Your own stuffs outstanding. Always maintain it up!

  46. I must say, as a lot as I enjoyed reading what you had to say, I couldnt help but lose interest after a while. Its as if you had a wonderful grasp on the subject matter, but you forgot to include your readers. Perhaps you should think about this from far more than one angle. Or maybe you shouldnt generalise so considerably. Its better if you think about what others may have to say instead of just going for a gut reaction to the subject. Think about adjusting your own believed process and giving others who may read this the benefit of the doubt.Jobs offered

  47. I simply wished to thank you so much yet again. I’m not certain what I might have tried in the absence of the actual advice documented by you directly on this field. It actually was a fearsome case in my position, nevertheless being able to see a new specialised manner you handled that made me to leap over fulfillment. I am grateful for the work and in addition hope that you comprehend what a great job that you’re putting in instructing the mediocre ones via your web blog. Most probably you have never met all of us.

  48. Having read this I believed it was extremely informative. I appreciate you spending some time and effort to put this information together. I once again find myself spending way too much time both reading and leaving comments. But so what, it was still worth it.

  49. I’d like to thank you for the efforts you have put in writing this website. I’m hoping to check out the same high-grade blog posts from you later on as well. In truth, your creative writing abilities has encouraged me to get my own site now 😉

  50. After I originally commented I appear to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I receive four emails with the exact same comment. Is there an easy method you are able to remove me from that service? Kudos.

댓글 남기기