If you are using quite new version of compiler (and I think that you do), do not even bother including iostream.h. This file is obsolete and put into libraries for backward compatibility only. The same functionality, but conforming to curent standards, is placed inside of iostream, so just put
line in your app.
Maybe before you were using backward-compatible libraries which included iostream.h, and now switched to more modern one.
"inherit to be reused by code that uses the base class, not to reuse base class code", Sutter and Alexandrescu, C++ Coding Standards.
Club of lovers of the C++ typecasts cute syntax: Only recorded member.
Out of memory happens! Handle it properly!
Say no to g_new()!