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
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.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)