Since you say you are a beginner, I can't tell if you know what a class
means - if you do, a function like that inside a class named CcMessage
gets called each time an object of that class goes out of scope - it
performs certain cleanups needed to destroy the object.
"QQ" <junciu@yahoo.c om> wrote in message
news:1115228501 .029669.103590@ z14g2000cwz.goo glegroups.com.. .[color=blue]
> for example
> ~CcMessage() {}[/color]
It's a destructor. Look it up.
[color=blue]
> Thanks a lot!
>
> I am a beginner for C++, so please forgive my stupid questions[/color]
No need to 'forgive' you, only to recommend you
get a good textbook or two about C++. It's virtually
impossible to learn it without one.
Comment