Turbo C++ apparently doesn't conform to the C++ standard. So instead of <sstream> use <strstream> and where you would normally use the functions istringstream and ostringstream you have to use istrstream and ostrstream.
The second part of your question is what is called a "destructor". It is a method fired when an object is destroyed and needs to be cleaned up. You can identify this because it looks just like the constructor except includes that tilde character "~".
For instance the example you show is the destructor function for the CreateDxf Object.
To implement it in your program would be just like any other function, but in a context where you have to clean up and free any resources on destruction of the object. This goes back to standard C++ theory. So look up the term "destructor" for more information on how they work.
Hope these answer your questions. Enjoy!
"At DIC we be the answer man, except the one that lurks in the shadows of your closet or under your bed!"