Search:

Type: Posts; User: lafayette

Search: Search took 0.01 seconds.

  1. I should have understood more or less, I'll take...

    I should have understood more or less, I'll take notes for my next writings. thank you so much, very powerful explanation
  2. ok, thanks for the precisation. And if I would...

    ok, thanks for the precisation. And if I would give a copy constructor to the other class? Which other alternatives do I have?

    p.s. I can't remember why, in the copy constructor interface, object...
  3. mmm ok...seems the quickest solution, thank you

    mmm ok...seems the quickest solution, thank you
  4. instantiation of a static object within class

    Hi all, I've got a question about how to introduce other classes objects as member in another class:


    #include "otherclass.h"

    Class MyClass {

    private:

    int member1;
  5. Replies
    1
    Views
    2,296

    ok, simply seems that realtime library doesn't...

    ok, simply seems that realtime library doesn't exist for mac os x. better to search for alternative functions when porting
  6. Replies
    1
    Views
    2,296

    lrt and lz flag in MacOs X

    Hi all, I'm trying to compile a project that makes use of lrt and lz library, that should be part of glibc as I read somewhere. But seems that they doesn't exist on Mac: anyone faced this problem...
  7. Replies
    15
    Views
    2,439

    thank you all, you're really clear explaining...

    thank you all, you're really clear explaining things. I'll keep practising hoping to write well-formed code
  8. Replies
    15
    Views
    2,439

    ok, I think I have the whole question more clear...

    ok, I think I have the whole question more clear now.

    Just as a final example, based on what you said in this discussion:

    declaring a class attribute as, for example:



    char* member;
  9. Replies
    15
    Views
    2,439

    I've read something about std::vector, but I...

    I've read something about std::vector, but I thought my implementation (now changed to the variant #1, could be safe and almost bug-free. Or should I call a malloc() for every array item, with the...
  10. Replies
    15
    Views
    2,439

    ok, even if a little OT (not so much I think)...

    ok, even if a little OT (not so much I think) thank you because I think these little suggestions are pretty important, mostly when starting writing something
  11. Replies
    15
    Views
    2,439

    very very clear, I think I've understood now ...

    very very clear, I think I've understood now

    thank you so much
  12. Replies
    15
    Views
    2,439

    perfect. So the second notation should also be...

    perfect. So the second notation should also be corrected using "new[]" rather than "new"?
  13. Replies
    15
    Views
    2,439

    C++ newbie question about pointers

    hi all, and I ask pardon for this question (I've read the FAQ about pointers) but still can't get rid of this doubt.

    I would like to compare these 2 different types of instantiation:



    Item*...
Results 1 to 13 of 13