Click here to Skip to main content
15,920,632 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to create database & tables on another machine?? Pin
Ed K25-Mar-10 9:50
Ed K25-Mar-10 9:50 
QuestionRe: How to create database & tables on another machine?? Pin
David Crow25-Mar-10 10:46
David Crow25-Mar-10 10:46 
AnswerRe: How to create database & tables on another machine?? Pin
Ed K25-Mar-10 15:20
Ed K25-Mar-10 15:20 
QuestionHow can I get VS 2008 to generate all the classes a control needs? Pin
Interrobang25-Mar-10 9:35
Interrobang25-Mar-10 9:35 
Questionvector sort method Pin
b-rad31125-Mar-10 9:13
b-rad31125-Mar-10 9:13 
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 
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 
Hi everyone,

I'm currently using a vector of vectors (which includes a pair of objects), I declare it as:
vector< pair< vector< long double >,string > > vec;

the problem is, I really need a "triple" which I know doesn't exist, so does anyone know how I could add an additional variable such as an additional vector of integers into the mix, and if so, how I'd load and access the data?


I currently use the following to load data:
vec.push_back(pair< vector< long double >,string > (row_temp, header));

where row_temp is a vector of "long doubles" and "header" is a string.


and I use the following to access the data:
newvec[zz].first[yy]
newvec[zz].second.data()

where zz and yy are just integer variables based on the loop that I'm currently in.

The reason that I'm needed to treat so many items as a single object is that I perform some sorting and "unique" routines on the vectors in the end.

Thanks in advance!

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.