> I am not a strong C++ programmer, but if I declare a class, can I declare a 
> pointer of that class type and assign it to NULL or to any other object of 
> the same class?

Hi Leslie,

Sounds like you've still got enthusiam for coding in C and C++ which is great, 
given how much of a hard time it generally gets. I started coding about 30 
years ago and I think the second language I taught myself as C (and has 
remained my favourite but I might be biased, working in Linux and embedded) and 
this was pre-C89, so things have come a long way. I still smile whenever I come 
across K&R's book which I still have a reprint in softcover.

As for your C++ questions, I have no recent, off-the-top-of-my-head book or 
resource I'd point you at to resolve your questions but perhaps somebody else 
on here has the time to work through things with you. Looks like you need to 
get a better understanding of constructors and memory management.

-E

_______________________________________________
mlug mailing list
[email protected]
https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca

Reply via email to