[prog] Thank you all again!
ed orphan
millward at Ms.UManitoba.CA
Wed May 28 20:43:28 EST 2003
You people are just excellent! Now I understand
the stack/heap/pointer stuff.
Someone must have told me this information
long ago when I was first learning C, but I've
long since forgotten. Now I understand
why I should use new for object creation.
And that weird command, <? I see that
it's short for
result = result < 100 ? 100 : result
which is a lot better way to do it.
std::min() and std::max() would be better too.
Short-cuts cause more trouble then they
are worth, especially for people like me,
who don't really know what they're doing.
I own "The C++ Programming Language"
book, but it's beyond my understanding.
More information about the Programming
mailing list