S
subramanian100in
Long back I posted a program followed by a question to this discussion
group comp.lang.c++. I don't remember which post that was. In that
program, I had used cout statements in the ctor and dtor. Some
knowledgeable gentlemen in this forum, questioned regarding the usage
of cout statements in ctor and dtor. I am unable to understand why
cout statements should NOT be used in ctor and dtor.
My question: Should the usage of cout statements be avoided in ctor
and dtor ? If so why ?
Kindly explain.
Thanks
V.Subramanian
group comp.lang.c++. I don't remember which post that was. In that
program, I had used cout statements in the ctor and dtor. Some
knowledgeable gentlemen in this forum, questioned regarding the usage
of cout statements in ctor and dtor. I am unable to understand why
cout statements should NOT be used in ctor and dtor.
My question: Should the usage of cout statements be avoided in ctor
and dtor ? If so why ?
Kindly explain.
Thanks
V.Subramanian