Click here to Skip to main content
15,891,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get the Error Pin
Paul M Watt11-Oct-02 9:27
mentorPaul M Watt11-Oct-02 9:27 
AnswerRe: How to get the Error Pin
Alvaro Mendez11-Oct-02 11:33
Alvaro Mendez11-Oct-02 11:33 
GeneralSTL adding two sets together Pin
ns11-Oct-02 7:47
ns11-Oct-02 7:47 
GeneralRe: STL adding two sets together Pin
Daniel Turini11-Oct-02 7:46
Daniel Turini11-Oct-02 7:46 
GeneralRe: STL adding two sets together Pin
Nick Parker11-Oct-02 8:53
protectorNick Parker11-Oct-02 8:53 
GeneralRe: STL adding two sets together Pin
Daniel Turini11-Oct-02 8:56
Daniel Turini11-Oct-02 8:56 
GeneralRe: STL adding two sets together Pin
Nick Parker11-Oct-02 9:01
protectorNick Parker11-Oct-02 9:01 
GeneralRe: STL adding two sets together Pin
jbarton11-Oct-02 9:46
jbarton11-Oct-02 9:46 
The following example shows using set_union to do a union of sets:

<br />
using namespace std;<br />
<br />
<br />
class PrintInt<br />
   {<br />
   public:<br />
      void operator() ( int value )<br />
         {<br />
         cout << value << endl;<br />
         }<br />
   };<br />
<br />
<br />
int main()<br />
   {<br />
   set<int> setA;<br />
   set<int> setB;<br />
   set<int> setC;<br />
<br />
   setA.insert( 1 );<br />
   setA.insert( 3 );<br />
   setA.insert( 5 );<br />
   setA.insert( 7 );<br />
   setA.insert( 9 );<br />
<br />
<br />
   setB.insert( 2 );<br />
   setB.insert( 3 );<br />
   setB.insert( 4 );<br />
   setB.insert( 5 );<br />
<br />
   set_union( setA.begin(), setA.end(), setB.begin(), setB.end(), inserter(setC,setC.begin()) );<br />
<br />
   cout << "setC Contents:" << endl;<br />
   for_each( setC.begin(), setC.end(), PrintInt() );<br />
<br />
   return 0;<br />
   }<br />


Best regards,
John
GeneralRe: STL adding two sets together Pin
ns11-Oct-02 9:53
ns11-Oct-02 9:53 
GeneralGetting CRETESTRUCT data from a hook Pin
Gaurika Wijeratne11-Oct-02 7:39
Gaurika Wijeratne11-Oct-02 7:39 
GeneralRe: Getting CRETESTRUCT data from a hook Pin
Paul M Watt11-Oct-02 7:47
mentorPaul M Watt11-Oct-02 7:47 
GeneralRe: Getting CRETESTRUCT data from a hook Pin
Gaurika Wijeratne11-Oct-02 8:10
Gaurika Wijeratne11-Oct-02 8:10 
GeneralRe: Getting CRETESTRUCT data from a hook Pin
Paul M Watt11-Oct-02 9:33
mentorPaul M Watt11-Oct-02 9:33 
GeneralRe: Getting CRETESTRUCT data from a hook Pin
Joel Lucsy11-Oct-02 10:18
Joel Lucsy11-Oct-02 10:18 
GeneralFTP file Pin
Anonymous11-Oct-02 7:37
Anonymous11-Oct-02 7:37 
GeneralRe: FTP file Pin
Rickard Andersson2011-Oct-02 9:14
Rickard Andersson2011-Oct-02 9:14 
GeneralRe: FTP file Pin
Anonymous11-Oct-02 9:34
Anonymous11-Oct-02 9:34 
GeneralRe: FTP file Pin
Rickard Andersson2011-Oct-02 23:27
Rickard Andersson2011-Oct-02 23:27 
GeneralRe: FTP file Pin
perlmunger12-Oct-02 17:01
perlmunger12-Oct-02 17:01 
Generalerror C2512: 'CMeasureItemsPage' : no appropriate default construc Pin
Daniel Strigl11-Oct-02 7:35
Daniel Strigl11-Oct-02 7:35 
GeneralRe: error C2512: 'CMeasureItemsPage' : no appropriate default construc Pin
Gary R. Wheeler11-Oct-02 16:15
Gary R. Wheeler11-Oct-02 16:15 
GeneralRe: error C2512: 'CMeasureItemsPage' : no appropriate default construc Pin
Daniel Strigl13-Oct-02 8:57
Daniel Strigl13-Oct-02 8:57 
QuestionModal to Modeless dialogs? Pin
clintsinger11-Oct-02 7:01
clintsinger11-Oct-02 7:01 
AnswerRe: Modal to Modeless dialogs? Pin
Paul M Watt11-Oct-02 7:42
mentorPaul M Watt11-Oct-02 7:42 
QuestionHow to get text in ComboBox Pin
Vincent Ye11-Oct-02 7:01
Vincent Ye11-Oct-02 7:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.