Search Results - CodeGuru Forums
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.06 seconds.

  1. 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...
  2. Replies
    9
    Views
    386

    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. :)
  3. Replies
    9
    Views
    386

    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...
  4. 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...
  5. Re: Would this cause a link time error?

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

    .
    .
    .
    .
    .
    .
    .
    .
  6. 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:


    ...
  7. Replies
    6
    Views
    690

    Re: Need help

    :D

    RezaBagherian2, you clearly need to provide more information, how about showing the code with which you have an issue?
  8. 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...
  9. 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...
  10. Replies
    4
    Views
    722

    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...
  11. Replies
    63
    Views
    3,432

    Re: Abstraction concept problem?

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

    Re: Abstraction concept problem?

    Ok, you've got me there. :)
  13. 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...
  14. Replies
    63
    Views
    3,432

    Re: Abstraction concept problem?

    Lol, very true :)
  15. Replies
    63
    Views
    3,432

    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...
  16. Replies
    63
    Views
    3,432

    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...
  17. Replies
    63
    Views
    3,432

    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...
  18. 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....
  19. Replies
    11
    Views
    1,047

    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...
  20. Replies
    6
    Views
    746

    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...
  21. Replies
    6
    Views
    746

    Re: Heartbeat Calculation Question

    Bpm = frequency * 60

    Bpm = (1/tick) * 100 * 60

    Bpm = (1/tick) * 6000

    Bpm = 6000/tick
  22. 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...
  23. Replies
    27
    Views
    3,068

    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...
  24. Replies
    27
    Views
    3,068

    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...
  25. Replies
    27
    Views
    3,068

    Re: passing smart pointer

    Yeah, that is where I was coming from in post #10. My point being is that it depends on intent, i.e. what is the subject matter?

    But, if you take the strict alias view of reference semantics,...
Results 1 to 25 of 1163
Page 1 of 47 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center