Hi all,
Im looking for a good tutorial that can explain when and where you should deal with global variables and pointers so they can be freed correctly.
Can anyone recommend one?
Thanks![]()
This is a discussion on Garbage Collection within the C++ Programming forums, part of the General Programming Boards category; Hi all, Im looking for a good tutorial that can explain when and where you should deal with global variables ...
Hi all,
Im looking for a good tutorial that can explain when and where you should deal with global variables and pointers so they can be freed correctly.
Can anyone recommend one?
Thanks![]()
The RAII idioim tends to be preferred to garbage collection in C++.
You could read Implementing the 'Resource Acquisition is Initialization' Idiom by Danny Kalev, or simply search the Web.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way