Hi everyone!
I'm doing a C++ problem that I'm a bit stuck on.
I'd like to be able to store multiple data types in a C++ container with a key (such as a Map)...
Is there any way to do this or...
Type: Posts; User: LuckyPierre
Hi everyone!
I'm doing a C++ problem that I'm a bit stuck on.
I'd like to be able to store multiple data types in a C++ container with a key (such as a Map)...
Is there any way to do this or...
Firstly, thanks for everyone's help so far! So here's my code now.
#include "stdafx.h"
#include <vector>
#include <iostream>
#include <string>
#include <sstream>
#include <numeric>
Thanks for the comment, as you can see I haven't been too sure how to approach this problem so thanks for the pointer...
Could you give any more info on what I should be looking at to learn about...
Yeah, I wasn't sure what to do about the typedef, I don't want to remove it from main() but I don't really want to do it twice... I thought i'd concentrate on the other parts of the problem and...
thanks for the reply...
It's part of a larger test/problem and I've posted the complete file above...
As such I don't think that I can modify the main()...
And re; the push_back comment, I...
It's part of a test that I found that I wanted to work through to learn more about templates/tuples and vectors etc.
I've included the full test file which will hopefully make things a little...
Hi everyone!
I'm doing a test to try and improve my understanding of vectors and boost tuples and am having the following problem.
I have simplified the issue down to the code pasted below and...