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

Search:

Type: Posts; User: razzle

Page 1 of 12 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    141

    Re: Bool type problem

    C++ is not defined by some "manual". It's defined by the C++ standard and it states that the allocation of bit-fields is implementation dependent (see 9.6 bit-fields). This means "trying out" may...
  2. Replies
    49
    Views
    1,561

    Re: Is this guaranteed to be correct?

    Sorry, but as you may have noticed I'm very competitive and when I've defeated someone in a discussion I usually perform a small war dance ritual to celebrate the occasion.

    So before you engage...
  3. Replies
    5
    Views
    141

    Re: Bool type problem

    How do you know that?
  4. Re: What technologies to use for modern Windows client development?

    It certainly isn't. WPF is just another technology Microsoft may abandon just like they did the MFC.

    If you're developing in native C++ I strongly recommend you have a hard look at the Qt...
  5. Replies
    11
    Views
    1,836

    Re: Please help! I need to write a code.

    Ahh, you mean the curiously recurring pizza problem in computer science? :)
  6. Replies
    3
    Views
    179

    Re: how can I get rid of these downcasts?

    It's very simple. In a polymorphic design a base class public interface must be functionally complete. It must sport the virtual methods needed for it to be used in the proper, wanted and expected...
  7. Replies
    49
    Views
    1,561

    Re: Is this guaranteed to be correct?

    You've replied to my answer to superbonzo (#43) and not to my answer to you (#41).

    It's better if you defend the stupidities you write yourself and not the stupidities superbonzo write, but since...
  8. Replies
    6
    Views
    210

    Re: Code Style Checking Tool

    I think it's quite a lot to this,

    http://www.tiobe.com/index.php/content/paperinfo/HowToUseCodingStandards.html
  9. Replies
    49
    Views
    1,561

    Re: Is this guaranteed to be correct?

    If your main point is that you don't share my definition of type safety (which I've made perfectly clear throughout this thread) then stop mumbling and spit it out for heaven's sake.

    Both...
  10. Replies
    49
    Views
    1,561

    Re: Is this guaranteed to be correct?

    It's pointless to argue with me only if you are wrong. :) And this time you're wrong at two levels.

    First, you claim Boost.Any is type safe but it isn't because any_cast may fail at runtime. And...
  11. Replies
    49
    Views
    1,561

    Re: Is this guaranteed to be correct?

    Your argumentation has two serious flaws.

    You seem to think that certain kinds of external subsystems will infect C++ with dynamic typing and there's no cure against it, almost like a Zombie...
  12. Replies
    14
    Views
    359

    Re: How to solve this factorial

    I mean that restricting a language to the use of goto's only would render it not Turing complete. For Turing completeness an imperative language requires conditional branching. It means in addition...
  13. Replies
    9
    Views
    372

    Re: Casting Pointers in C style?

    It's quite simple, types must match.

    Say you have these variables,

    char myChar; // a char
    char* myCharPtr; // a pointer to char
    int* myIntPtr; // a pointer to int

    Now, &myChar represents a...
  14. Replies
    14
    Views
    359

    Re: How to solve this factorial

    Then please post the whole original question exactly as it was given to you. What's the name of the course and at what educational level?

    My guess is that you are holding back information or have...
  15. Replies
    11
    Views
    385

    Re: Templated upcast function

    I strongly recommend you review this design.

    If you end up having to turn a type safe upcast into an unsafe downcast for implementation reasons only, something is seriously wrong.

    Why is...
  16. Re: How to pass a N-dimensional array to a function?

    Yes, only 1-dimensional programmers use N-dimensional arrays. :)

    In C++ there's almost always a better data structure than an N-dimensional array (where N is higher than 2).

    I suggest you...
  17. Re: How to pass a N-dimensional array to a function?

    If you want generiticity there's a Boost library class called MultiArray.
  18. Replies
    49
    Views
    1,561

    Re: Is this guaranteed to be correct?

    Well that's fine. If your Variant class is a variation of the Visitor design pattern then type resolution will take place at compile time and it will be type safe.

    But then on the other hand it's...
  19. Replies
    49
    Views
    1,561

    Re: Is this guaranteed to be correct?

    Please give me one such problem.
  20. Replies
    45
    Views
    1,919

    Re: Difficult Algorithm!

    Well, I think I can now. :)

    The villages are visited in order along the street (from lower distances to higher).

    The first and the last hospitals are special cases. We start with the first...
  21. Replies
    45
    Views
    1,919

    Re: Difficult Algorithm!

    Yes there is but I cannot help you because I'm not into this type of math. The principle is simpel enougth though. One starts with a known NP complete problem and then reduce it to ones own problem...
  22. Replies
    45
    Views
    1,919

    Re: Difficult Algorithm!

    No, the greedy approach is not exact but neither is the "balancing" algorithm you're fiddling on. At least so far no one has shown that it leads to an optimal solution and so far no one has shown...
  23. Replies
    27
    Views
    1,340

    Re: passing smart pointer

    I don't understand why you mean by "the whole naming thing"?

    But if you're referring to a confusing terminology I can only say this is one important reason to stick to the established terminology....
  24. Replies
    49
    Views
    1,561

    Re: Is this guaranteed to be correct?

    No! Trading away the type safety of C++ for reasons of programmer's convenience is a monumental blunder of almost biblical proportions. Static type checking is at the very foundation of C++. If you...
  25. Replies
    49
    Views
    1,561

    Re: Is this guaranteed to be correct?

    Again, one of the most prominent characteristics of C++ is its type safety. It's amazing how much effort is spent on giving that away for nothing. It would be much better if all this effort went into...
Results 1 to 25 of 297
Page 1 of 12 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center