Click here to Skip to main content
15,895,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCFtpConnection::PutFile with blank characters Pin
Ray Manyik18-May-06 12:58
Ray Manyik18-May-06 12:58 
AnswerRe: CFtpConnection::PutFile with blank characters Pin
Ganesh_T18-May-06 18:42
Ganesh_T18-May-06 18:42 
GeneralRe: CFtpConnection::PutFile with blank characters Pin
Ray Manyik19-May-06 6:07
Ray Manyik19-May-06 6:07 
GeneralRe: CFtpConnection::PutFile with blank characters Pin
Ganesh_T19-May-06 18:27
Ganesh_T19-May-06 18:27 
GeneralRe: CFtpConnection::PutFile with blank characters Pin
Ray Manyik22-May-06 5:41
Ray Manyik22-May-06 5:41 
GeneralRe: CFtpConnection::PutFile with blank characters Pin
Ray Manyik23-May-06 7:23
Ray Manyik23-May-06 7:23 
Questionfunctions and arrays Pin
pp94418-May-06 12:44
pp94418-May-06 12:44 
AnswerRe: functions and arrays Pin
Stephen Hewitt18-May-06 13:47
Stephen Hewitt18-May-06 13:47 
Use STL. For example the following will calculate the intersection of two sets:
--------------------------

// Console.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <algorithm>
#include <iterator>
using namespace std;

int main(int argc, char* argv[])
{
int set1[] = {1, 2, 8, 3, 7, 11};
int *pSet1End = set1+(sizeof(set1)/sizeof(*set1));

int set2[] = {7, 9, 16, 2, 15, 8};
int *pSet2End = set2+(sizeof(set2)/sizeof(*set2));

// Must be sorted to use set operations.
sort(set1, pSet1End);
sort(set2, pSet2End);

// Calculate and output the intersection.
set_intersection(
set1, pSet1End, // The first set
set2, pSet2End, // The second set
ostream_iterator<int>(cout, "\n") // Where to put the results
);

return 0;
}


Steve
Questionhowto parallel port Pin
mahmoud_bagheri18-May-06 12:22
mahmoud_bagheri18-May-06 12:22 
QuestionObjects and threads Pin
masnu18-May-06 11:00
masnu18-May-06 11:00 
QuestionRe: Objects and threads Pin
David Crow18-May-06 11:03
David Crow18-May-06 11:03 
AnswerRe: Objects and threads Pin
Chris Losinger18-May-06 11:04
professionalChris Losinger18-May-06 11:04 
AnswerRe: Objects and threads Pin
led mike18-May-06 11:18
led mike18-May-06 11:18 
AnswerRe: Objects and threads Pin
Peter Weyzen18-May-06 12:20
Peter Weyzen18-May-06 12:20 
Questionseperating items Pin
Sam 200618-May-06 10:55
Sam 200618-May-06 10:55 
QuestionRe: seperating items Pin
David Crow18-May-06 11:01
David Crow18-May-06 11:01 
AnswerRe: seperating items Pin
Sam 200618-May-06 12:45
Sam 200618-May-06 12:45 
AnswerRe: seperating items Pin
Peter Weyzen18-May-06 12:21
Peter Weyzen18-May-06 12:21 
AnswerRe: seperating items Pin
ThatsAlok18-May-06 19:39
ThatsAlok18-May-06 19:39 
Questionhow to display text in a combo box edit control Pin
elephantstar18-May-06 10:20
elephantstar18-May-06 10:20 
AnswerRe: how to display text in a combo box edit control Pin
Chris Losinger18-May-06 10:31
professionalChris Losinger18-May-06 10:31 
GeneralRe: how to display text in a combo box edit control Pin
elephantstar18-May-06 11:02
elephantstar18-May-06 11:02 
AnswerRe: how to display text in a combo box edit control Pin
Andy Rama19-May-06 3:04
Andy Rama19-May-06 3:04 
GeneralRe: how to display text in a combo box edit control Pin
elephantstar23-May-06 11:45
elephantstar23-May-06 11:45 
QuestionMemory leak issue Pin
Chris Corben18-May-06 8:55
Chris Corben18-May-06 8:55 

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.