[QUOTE=rosareven] I do remember being told not to use globals in programming outside of C2, such as Java and C++. Forgot what the reason was now though.[/QUOTE]
Wasn't it something about taking up too many resources? If all variables are global in C++ code, then that memory will always stay used. Whereas the local variables are created and destroyed as needed.
Not sure if that is 100% right...I only play a programmer on TV!Manley232013-04-12 20:32:31