I should have understood more or less, I'll take notes for my next writings. thank you so much, very powerful explanation
Type: Posts; User: lafayette
I should have understood more or less, I'll take notes for my next writings. thank you so much, very powerful explanation
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...
mmm ok...seems the quickest solution, thank you
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;
ok, simply seems that realtime library doesn't exist for mac os x. better to search for alternative functions when porting
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...
thank you all, you're really clear explaining things. I'll keep practising hoping to write well-formed code
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;
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...
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
very very clear, I think I've understood now
thank you so much
perfect. So the second notation should also be corrected using "new[]" rather than "new"?
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*...