CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: MisterEd

Search: Search took 0.04 seconds.

  1. Replies
    0
    Views
    4,343

    Beginner XML / XSLT count() help needed!

    Hi everyone!

    I'm quite new to XML and XSLT and am trying to work out how to do the following example:

    xml code:



    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet...
  2. Replies
    3
    Views
    12,433

    Re: Standard typedef name

    Ah ok, thanks!

    So for the above would it be :

    std::streambuf

    not

    std::streambuf<char>
  3. Replies
    3
    Views
    12,433

    Standard typedef name

    Hi!
    Can anyone help me with the following problem or at least point me in the right direction:
    ...
    I need some help in understanding what is meant by "standard typedef name" as in :
    "what is the...
  4. Static/Dynamic casting and references/pointers

    Hi,

    I'm getting a bit confused while looking at static_cast and dynamic_cast while using references and pointers. I could really do with an idiots guide with plenty of examples to clear things up....
  5. Replies
    2
    Views
    838

    Re: Quick True/False Class Question

    Hi,

    Thanks very much for the clarification, I thought it was something specific to .net but was unsure if there was something I was missing.

    cheers!
  6. Replies
    2
    Views
    838

    Quick True/False Class Question

    Hi everyone!

    Just looking at a C++ test for revision.

    Several statements are provided regarding C++ classes and I am asked which one is true. I've narrowed it down to two answers:

    1 -...
  7. Replies
    3
    Views
    9,229

    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...
  8. Replies
    4
    Views
    1,954

    Re: question about boost tuple and template

    Hi,

    Did you ever get anywhere with this? I'm have the same problem and ideally would not want to copy data...
  9. Replies
    9
    Views
    10,547

    Re: Boost tuple and Vector problem

    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>
  10. Replies
    9
    Views
    10,547

    Re: Boost tuple and Vector problem

    ^^ the global declaration shouldn't really be there but I think the main issue I'm having is how to approach the whole exercise/problem
  11. Replies
    9
    Views
    10,547

    Re: Boost tuple and Vector problem

    The typedef is given in main() which I do not want to change... and I can't use the typedef declared in main from the function.

    So what should I do if I don't want to change the given code in...
  12. Replies
    9
    Views
    10,547

    Re: Boost tuple and Vector problem

    Hi Paul, thanks for the reply.

    I've included the full code below and I think there are two questions I have

    1 - Why doesn't this compile when I try and insert the tuple into the vector which is...
  13. Replies
    9
    Views
    10,547

    Re: Boost tuple and Vector problem

    The error is caused when I add the line with tthe comment "THIS IS THE LINE THAT CAUSES THE PROBLEM. The error refers to a line in the tuple_basic.hpp file which I assume is not really at fault. The...
  14. Replies
    9
    Views
    10,547

    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...
  15. Replies
    3
    Views
    3,854

    Re: new and memory allocation error

    thanks for the reply, so would you think it is just 1?
  16. Replies
    3
    Views
    3,854

    new and memory allocation error

    Another quick question!

    When standard new cannot allocate the requested storage in C++ which of the following does it do? (standard behaviour). (can be more than one answer)

    1 - throws a...
  17. Re: Basic Question from newbie... - Copy Constructors

    Great, so it's 2,4 and 5. Thanks for your help!
  18. Re: Basic Question from newbie... - Copy Constructors

    Thanks for the reply Skizmo, it can be more than one of those options, up to three I think...

    I thought that when an object was passed by value a copy of it was made, hence 2.

    Would agree with...
  19. Basic Question from newbie... - Copy Constructors

    Hi everyone,

    First post on this forum so hope this is in the right place, please advise if not.

    I'm relatively new to C++ and have been trying to test my knowledge with some online tests. I'm...
Results 1 to 19 of 19





Click Here to Expand Forum to Full Width

Featured