Quick question about new and delete
Considering c++ doesnt implement automatic garbage collection I understand that its a good idea to keep tight control of memory usage. I know that you can initialise a variable using the new and then clear it from the memory using delete. My question is that if you have a program that will be running indefinately, usually for days/weeks perhaps months at a time, is it advisable to use this method for nearly every variable. Or are objects and variables unloaded every time they go out of scope, and therefore should this only be used for objects with a wider scope, which you dont want accumulating in the memory as time goes by.