Search:

Type: Posts; User: LuckyPierre

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    6,735

    C++ Map with multiple data types?

    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...
  2. Replies
    14
    Views
    5,773

    Firstly, thanks for everyone's help so far! So...

    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>
  3. Replies
    14
    Views
    5,773

    Thanks for the comment, as you can see I haven't...

    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...
  4. Replies
    14
    Views
    5,773

    Yeah, I wasn't sure what to do about the typedef,...

    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...
  5. Replies
    14
    Views
    5,773

    thanks for the reply... It's part of a larger...

    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...
  6. Replies
    14
    Views
    5,773

    It's part of a test that I found that I wanted to...

    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...
  7. Replies
    14
    Views
    5,773

    Boost tuple and Vector problem

    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...
Results 1 to 7 of 7