how to insert a class object into a set container?

Reply

Join Date: Jul 2006
Posts: 2
Reputation: dandeliondream is an unknown quantity at this point 
Solved Threads: 0
dandeliondream dandeliondream is offline Offline
Newbie Poster

how to insert a class object into a set container?

 
0
  #1
Dec 6th, 2008
  1. set<Student> myStud;
  2. Student b;
  3. myStud[b] = Student("Katie", 12);
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 670
Reputation: Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough Freaky_Chris is a jewel in the rough 
Solved Threads: 113
Freaky_Chris's Avatar
Freaky_Chris Freaky_Chris is offline Offline
Practically a Master Poster

Re: how to insert a class object into a set container?

 
1
  #2
Dec 6th, 2008
Knowledge is power -- But experience is everything
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 2
Reputation: dandeliondream is an unknown quantity at this point 
Solved Threads: 0
dandeliondream dandeliondream is offline Offline
Newbie Poster

Re: how to insert a class object into a set container?

 
0
  #3
Dec 16th, 2008
thanks!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC