Hello,
Thank you for reading my post.
I am new to C++ and CodeBlocks.
I have three related questions.
1) C++ question
When I declare a new "ifstream" object a new "string" object like this:
void AClass::aMethod()
{
std::ifstream inputStream;
std::string s_wholeFileName = "";
}
How are the "ifstream" and the "string" objects destroyed?
Do I have to do it myself and if yes, how?
(I'm used to the Java garbage collector...)
2) Is there a tool inside CodeBlocks (or outside of it) that I could use to see exactly how memory is managed: memory allocations and deallocations. A tool which would tell me after each instruction what has happened as far has memory is concerned. (I'm running CodeBlocks with the Debian Squeeze OS).
3) And as a supplementary tool to the previous one, could you advise me a tool inside of CodeBlocks (or outside of it) which would tell me if all my variables have been properly created and destroyed.
This is simply said but it would really help.
Best regards,
--
Léa