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

Search:

Type: Posts; User: PredicateNormative

Page 1 of 47 1 2 3 4

Search: Search took 0.05 seconds.

  1. Re: RAD Studio difference between i++ and ++i

    That would be nice, but I think the intention is, that compiler vendors only need to deal with defined cases and do not have to consider or even identify when an undefined case occurs (although in...
  2. Re: Work on a remote C++ project with Eclipse via SSH and SVN+SSH (2 remote Linux)

    I've done something similar to this before, I ended up using Eclipse to remote debug an application on a Linux target. From memory though, I didn't get it running under Windows properly, I think I...
  3. Replies
    9
    Views
    1,578

    Re: My problem with pointers

    Very true... something tells me the OP was possibly just trying to figure out how strdup works by having a go at implementing it themselves. :)
  4. Replies
    9
    Views
    1,578

    Re: My problem with pointers

    I utterly agree with laserlight and 2kaud, use std::string instead. However, from the perspective of learning, there are a number of issues.

    1) Remembering that the function should assume that it...
  5. Re: Inheritance in template methods

    What you are doing is bad design and outright dangerous. Firstly, how do you know that a parent pointer can be down cast to the child type? At the very least you should have a for loop that only...
  6. Re: Would this cause a link time error?

    That's alright, I'm going to nitpick back. :D

    .
    .
    .
    .
    .
    .
    .
    .
  7. Re: Would this cause a link time error?

    Hi Jack,

    Firstly, I’d like to say that I very much agree with what superbonzo has written. However, I’d also like to answer why the linker is complaining.

    Consider the following class:


    ...
  8. Replies
    6
    Views
    1,673

    Re: Need help

    :D

    RezaBagherian2, you clearly need to provide more information, how about showing the code with which you have an issue?
  9. Re: Anybody remember Sequiter Software's Codebase 6.5?

    Hi GBergmann, I haven't personally heard of it, but I would suggest two things. 1) run the search from a Linux Live CD or virtual machine. 2) When you do find the latest release, transfer all of the...
  10. Re: How to write a code Using while loop begin and extend untill you find end in Java

    This sounds like homework, so without wanting to give too much away, the best place to start is to ask yourself, how you would find a single "/begin", "/end" block. I expect the logic would be...
  11. Replies
    5
    Views
    2,238

    Re: small help with java

    It's probably a bit late for me to reply, but if you haven't figured it out yet, then think about what you are doing with having an outer loop and an inner loop both counting to N. What you are...
  12. Replies
    63
    Views
    13,265

    Re: Abstraction concept problem?

    Yeah I think there is too much room for interpretation on this subject :D
  13. Replies
    63
    Views
    13,265

    Re: Abstraction concept problem?

    Ok, you've got me there. :)
  14. Re: Recursive function: take a non-negative integer and print each digit of that inte

    You seem to miss the practical point that with recursion you can run out of stack space - for this reason in cases that are not sufficiently bound iteration is the clear winner. With template...
  15. Replies
    63
    Views
    13,265

    Re: Abstraction concept problem?

    Lol, very true :)
  16. Replies
    63
    Views
    13,265

    Re: Abstraction concept problem?

    Superbonzo (and OReubens), thanks for the clarification. :)

    To be honest, as a general rule I tend to pass built-in types by value, but class types I prefer to pass by reference. That way I avoid...
  17. Replies
    63
    Views
    13,265

    Re: Abstraction concept problem?

    I agree that reference semantics can mean both pointers and references, but my issue is with lumping reference and pointer types under the term of "pointers". My reasoning is doing so is opens up...
  18. Replies
    63
    Views
    13,265

    Re: Abstraction concept problem?

    I’ve been really enjoying this thread and if it was going faster, I might even have got some popcorn for the show. :D

    All joking aside, tiliavirga you seem to be using a different set of...
  19. Re: a question regarding to std vector

    Learning aside, perhaps the wrong tool for the job is being used in your here. If the only two options are that the task passed or that it failed, then wouldn't a container of boolean values (e.g....
  20. Replies
    11
    Views
    4,099

    Re: Templated upcast function

    Am I missing something? Why wait until runtime to tell the programmer they have done something wrong? Why not just fail at compile time?




    template <bool canUpCast>
    struct...
  21. Replies
    6
    Views
    1,589

    Re: Heartbeat Calculation Question

    bpm = (1/tick) * 6000
    bpm = 6000 * (1/tick)
    bpm = (6000 * 1)/tick
    bpm = 6000/tick

    However, if you want to think about it more deeply then, yes, 6000 is implicitly 6000/1, so you are really...
  22. Replies
    6
    Views
    1,589

    Re: Heartbeat Calculation Question

    Bpm = frequency * 60

    Bpm = (1/tick) * 100 * 60

    Bpm = (1/tick) * 6000

    Bpm = 6000/tick
  23. Re: STL functions shows a segmentation fault.

    I'm with VictorN on this one, the most likely cause is that there is a bug in your code. I've seen this kind of thing before where it works on some machines but not on others. Someone at my work had...
  24. Replies
    27
    Views
    6,029

    Re: passing smart pointer

    Yes, however, as I stated previously:

    If the true terminology was still so well widely known and accepted, there wouldn't be so many varying opinions. The fact is, it may have been well...
  25. Replies
    27
    Views
    6,029

    Re: passing smart pointer

    So, razzle, lets get back to businness... ;)


    You are missing the point, the reason for avoiding dynamic memory allocation in real-time systems, is not always to do with the timing guarantees of...
Results 1 to 25 of 1164
Page 1 of 47 1 2 3 4





Click Here to Expand Forum to Full Width

Featured