C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » General »

Create the multiset object using c++


Posted Date: 25 Aug 2009    Resource Type: Code Snippets    Category: General
Author: Santosh Kumar SinghMember Level: Gold    
Rating: 1 out of 5Points: 2



Description :


This code shows how to create multiset object using c++


#include <iostream>
#include <set>

int main()
{
// Create the multiset object.
std::multiset charMultiset;

// Populate the multiset with values.
charMultiset.insert('E');
charMultiset.insert('D');
charMultiset.insert('C');
charMultiset.insert('B');
charMultiset.insert('A');
charMultiset.insert('B');
charMultiset.insert('D');

// Display the contents of the multiset.
std::cout << "Contents of multiset: " << std::endl;
multiset::iterator iter;
for (iter = charMultiset.begin();
iter != charMultiset.end(); iter++)
std::cout << *iter << std::endl;

return 0;
}



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Create the multiset object using c++  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Easy Tray Icon for our projects
Previous Resource: Global locale and native locale in c++
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use