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

Search:

Type: Posts; User: souldog

Page 1 of 80 1 2 3 4

Search: Search took 0.50 seconds.

  1. POD CO-VARIANT return type virtual overload

    template<typename P, typename B>
    class POD_PARAMETER_INTERFACE_BASE_MIXIN : public B
    {
    //TYPEDEFS
    private:
    typedef POD_PARAMETER_INTERFACE_BASE_MIXIN<P, B> THIS_TYPE;
    typedef B BASE;
    ...
  2. Replies
    1
    Views
    3,797

    Re: Solving Matix in lorg # of var [around 400]

    http://www.osl.iu.edu/research/mtl/

    http://www.boost.org/doc/libs/1_40_0/libs/numeric/ublas/doc/index.htm
  3. Re: Design Problem - Whether to use Templates, Inheritance, or Nothing

    to start of with the widgets. The problem is the WIDGET_TEST parameters.

    One solution is to use a base class for these parameters and then introduce an intermediary base class that does the...
  4. Re: Design Problem - Whether to use Templates, Inheritance, or Nothing

    What exactly is WIDGET_TEST. What do these parameters do
  5. Thread: Vector issues

    by souldog
    Replies
    8
    Views
    1,035

    Re: Vector issues

    what does your file look like?
  6. Replies
    12
    Views
    1,491

    Re: Off topic: A belated adieu

    I have learned a lot from reading your posts over the years and am sorry to see you go.
  7. Thread: Font Size

    by souldog
    Replies
    1
    Views
    720

    Re: Font Size

    http://cboard.cprogramming.com/windows-programming/102187-console-font-size.html
  8. Replies
    10
    Views
    1,336

    Re: 2 classes header file inclusion probleml !!

    no, you do not need to include the header file for class 1 in the header file for class 2 if class 1 is forward declared in the header for class 2 and only pointers or references to class 1 are used...
  9. Replies
    5
    Views
    881

    Re: Simple passing pointers as an argument

    you need to understand scope of an object



    int* CreateArray()
    {
    int my_array[3];
    my_array[0] = 5;
    my_array[1] = 10;
    my_array[2] = 25;
  10. Re: help with template template parameters

    http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/bfe907081959517c?pli=1
  11. Replies
    24
    Views
    4,734

    Re: SRAND Number Generation Help

    Hmmm... I am really having a hard time finding any "rude" comments and in fact find the over-sensitivity annoying. Maybe you should try and understand what is being said instead of getting your...
  12. Re: type precedence in mathematical operations - how is it decided?

    I have not thought about it much, but perhaps you can use something from the boost library.
    ...
  13. Replies
    19
    Views
    2,301

    Re: C - = Problems

    Couldn't agree more. Always practice defensive coding style. I would much rather have "ugly" code, than waste time debugging trivial syntax errors.
  14. Replies
    7
    Views
    1,745

    Re: Private vs protected inheritance

    Good point. Once you turn that page, more likely than not you will never need to go back and read it.
  15. Replies
    7
    Views
    1,745

    Re: Private vs protected inheritance

    http://www.parashift.com/c++-faq-lite/private-inheritance.html
  16. Replies
    6
    Views
    1,090

    Re: Object Oreinted inheritance design question

    ekhule, what you are describing here sounds like http://en.wikipedia.org/wiki/Policy-based_design and/or mix-in base classes
  17. Replies
    8
    Views
    6,997

    Re: [RESOLVED] HELP -> File I/O

    you might want to consider using the C++ io streams for writing and reading binary files. They are easier to use than directly using the WIN32 API.

    http://www.cplusplus.com/reference/iostream/
    ...
  18. Replies
    8
    Views
    6,997

    Re: HELP -> File I/O

    Which is why I asked if you were joking.
  19. Replies
    8
    Views
    6,997

    Re: HELP -> File I/O

    Are you joking?
  20. Replies
    19
    Views
    2,156

    Re: help with complex struct (or class)

    you are calling a invalid index on the order vector,

    Just like C-style arrays, vectors are 0 indexed. So the vector

    std::vector<Order> order(4);

    has four valid entries

    order[0],...
  21. Re: Passing a string constant as a template argument

    template parameters must have external linkage to avoid multiple instantiations of a template class across translation unit boundaries
  22. Re: Passing a string constant as a template argument

    instead of using the preprocessor tricks Paul has mentioned you can just place the declaration in an anonymous namespace to solve the linker problem. That is one of the things anonymous namespaces...
  23. Re: Passing a string constant as a template argument

    the string you are passing as a template parameter needs to have external linkage and be named. You would need to explicitly declare a variable for the string

    const char[] bla = "bla";

    now...
  24. Replies
    9
    Views
    1,582

    Re: Need help with vector of pointers

    you should be using boost::shared_ptr instead of raw pointers

    http://www.boost.org/doc/libs/1_40_0/libs/smart_ptr/shared_ptr.htm
  25. Replies
    13
    Views
    1,986

    Re: inserting a comma on the display

    this problem has two parts.

    1. Use integer arithmetic operations to break a number into two numbers.
    One representing the part less than 1000 and one representing the part greater than 1000.
    ...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured