Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: vector sort method Pin
Maximilien25-Mar-10 9:37
Maximilien25-Mar-10 9:37 
GeneralRe: vector sort method Pin
Luc Pattyn25-Mar-10 10:19
sitebuilderLuc Pattyn25-Mar-10 10:19 
GeneralRe: vector sort method Pin
Maximilien25-Mar-10 10:34
Maximilien25-Mar-10 10:34 
GeneralRe: vector sort method Pin
Luc Pattyn25-Mar-10 10:36
sitebuilderLuc Pattyn25-Mar-10 10:36 
QuestionProgress Meter (MFC) [modified] Pin
Software200725-Mar-10 6:41
Software200725-Mar-10 6:41 
AnswerRe: Progress Meter (MFC) Pin
CPallini25-Mar-10 6:58
mveCPallini25-Mar-10 6:58 
AnswerRe: Progress Meter (MFC) Pin
Ravi Bhavnani25-Mar-10 7:33
professionalRavi Bhavnani25-Mar-10 7:33 
Questionuse of a struct in a pair which is used in a vector of vectors Pin
b-rad31125-Mar-10 5:49
b-rad31125-Mar-10 5:49 
Hello,

Does anyone know if a structure can be used in a pair which would then be used in a vector of vectors?

Here's what I have:
vector< pair< vector< long double >,struct mystruct >> vic;


where "mystruct" is:
struct vectorstruct{
    int x;
    string str;
} mystruct;


all compiles well until I attempt to load the vector using the following:
vic.push_back(pair< vector< long double >,struct mystruct > (row_temp,header,block_number));


that's when I get the following error message:
Error 1 error C2079: 'std::pair<_Ty1,_Ty2>::second' uses undefined struct 'CSchdle_NASMFC_format_combineDlg::OnOK::mystruct' c:\program files (x86)\microsoft visual studio 9.0\vc\include\utility 62 Schdle_NASMFC_format_combine
Error 2 error C2661: 'std::pair<_Ty1,_Ty2>::pair' : no overloaded function takes 3 arguments c:\users\ballen\desktop\schdle and nasmfc program\schdle_nasmfc_format_combine\schdle_nasmfc_format_combinedlg.cpp 384 Schdle_NASMFC_format_combine


I think the primary problem is that I'm not sure how to load values into "mystruct" via the "push_back" command.

Thanks,
AnswerRe: use of a struct in a pair which is used in a vector of vectors Pin
Graham Breach25-Mar-10 6:38
Graham Breach25-Mar-10 6:38 
QuestionCBCGPProp PushChar event not work Pin
MrKBA25-Mar-10 3:37
MrKBA25-Mar-10 3:37 
QuestionRe: CBCGPProp PushChar event not work Pin
CPallini25-Mar-10 3:51
mveCPallini25-Mar-10 3:51 
AnswerRe: CBCGPProp PushChar event not work Pin
MrKBA25-Mar-10 4:05
MrKBA25-Mar-10 4:05 
AnswerRe: CBCGPProp PushChar event not work Pin
tom groezer26-Mar-10 2:47
tom groezer26-Mar-10 2:47 
QuestionRe: CBCGPProp PushChar event not work Pin
CPallini26-Mar-10 2:55
mveCPallini26-Mar-10 2:55 
AnswerRe: CBCGPProp PushChar event not work Pin
Tim Craig26-Mar-10 8:37
Tim Craig26-Mar-10 8:37 
AnswerRe: CBCGPProp PushChar event not work Pin
Eugen Podsypalnikov25-Mar-10 3:52
Eugen Podsypalnikov25-Mar-10 3:52 
GeneralRe: CBCGPProp PushChar event not work Pin
MrKBA25-Mar-10 4:04
MrKBA25-Mar-10 4:04 
GeneralRe: CBCGPProp PushChar event not work Pin
Eugen Podsypalnikov25-Mar-10 4:12
Eugen Podsypalnikov25-Mar-10 4:12 
GeneralRe: CBCGPProp PushChar event not work Pin
MrKBA26-Mar-10 3:53
MrKBA26-Mar-10 3:53 
Questionneed vector of vectors to hold more than just a "pair" Pin
b-rad31125-Mar-10 3:34
b-rad31125-Mar-10 3:34 
AnswerRe: need vector of vectors to hold more than just a "pair" Pin
Chris Losinger25-Mar-10 3:42
professionalChris Losinger25-Mar-10 3:42 
GeneralRe: need vector of vectors to hold more than just a "pair" Pin
b-rad31125-Mar-10 3:45
b-rad31125-Mar-10 3:45 
GeneralRe: need vector of vectors to hold more than just a "pair" Pin
Chris Losinger25-Mar-10 3:58
professionalChris Losinger25-Mar-10 3:58 
GeneralRe: need vector of vectors to hold more than just a "pair" Pin
b-rad31125-Mar-10 4:00
b-rad31125-Mar-10 4:00 
AnswerRe: need vector of vectors to hold more than just a "pair" Pin
Nemanja Trifunovic25-Mar-10 5:43
Nemanja Trifunovic25-Mar-10 5:43 

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.