Search:

Type: Posts; User: mustermeister

Search: Search took 0.01 seconds.

  1. hi regression! Try linear regression. Fit a...

    hi regression! Try linear regression. Fit a straight line to the data and see how well that works.
  2. Replies
    56
    Views
    17,223

    The contradiction here is that you say the...

    The contradiction here is that you say the logging is optional, but the log object is constructed unconditionally. You should only construct it when the option of logging has been chosen. A solution...
  3. Replies
    56
    Views
    17,223

    No, an empty vector is as good as any...

    No, an empty vector<string> is as good as any other vector<string>. Any function taking such an argument should work equally well whether empty or not.

    It's not possible to make all abuse...
  4. Replies
    56
    Views
    17,223

    Strange thinking, MK. If you don't need it, why...

    Strange thinking, MK. If you don't need it, why not leave it out in the first place?
  5. Replies
    56
    Views
    17,223

    You're always free to do nothing in your...

    You're always free to do nothing in your constructors, in particular in your default ones, but that's bad programming practice and contrary to the spirit of the language. The reason why C++ has...
  6. Replies
    56
    Views
    17,223

    You CAN'T catch an exception from a member object...

    You CAN'T catch an exception from a member object IN the constructor. It seems permitted to do so in the initializer list, but that's terribly bad programming practice. Never do so! You don't WANT to...
  7. Replies
    56
    Views
    17,223

    I believe you are wrong. You cannot avoid...

    I believe you are wrong. You cannot avoid constructing members when the container is constructed. If you don't do so explicitly in the initializer list, the default constructors will be called. This...
  8. Replies
    56
    Views
    17,223

    Yes, laserlight is right. Use her code. Your...

    Yes, laserlight is right. Use her code. Your mistake was double: You used the var valis outside of its scope AND you used it after it had failed to construct! It's all right, however, to have...
  9. Replies
    5
    Views
    1,237

    Thanks for the tip. Very interesting. Worth...

    Thanks for the tip. Very interesting. Worth trying.
  10. Replies
    5
    Views
    1,237

    I know I can accomplish this in other languages....

    I know I can accomplish this in other languages. I've been using javascript and perl which both have eval functions, although the string is interpreted and not compiled I think.

    I want it in C++...
  11. Replies
    5
    Views
    1,237

    C++ compiler as a lib function?

    I would like to pass a string of valid C++ code to a library function which compiles it to machine code and returns it. Then I should be able to call another lib function which executes it. I want...
  12. You don't know what model/equation to use?? That...

    You don't know what model/equation to use?? That must be part of the problem! If you don't have a curve to fit there is no problem. I mean if you're free to choose ANY curve you could choose the one...
  13. Replies
    56
    Views
    17,223

    So put the declaration inside the try-catch...

    So put the declaration inside the try-catch block. Use grumpy's code.
  14. Replies
    3
    Views
    1,953

    Let's take the example with adjacent numbers not...

    Let's take the example with adjacent numbers not having a prime sum. You have an implicit static evaluation function for any state of the array (permutation): the number of errors. Each pair of...
  15. Replies
    56
    Views
    17,223

    An object will always be initialized when you...

    An object will always be initialized when you declare it. Why do you want to avoid that? More info please.
Results 1 to 15 of 15