Re: bout global variables

Ganesh N <[email protected]> Sun, 22 May 2005 20:19:24 -0700 (PDT)
Newsgroups gmane.comp.programming.cppug
Message-ID <[email protected]>
Hi,
 
  You can declare the variables as 'static' and write functions also in the same file. Call the functions (function may just returning the static variable's value) from your files. It will be more secure than declaring the variables as 'global'. (Of cource not completely secure).
  
regards,
 
Ganesh 

Basil Joseph <[email protected]> wrote:
hi all,
         its said that using global variables,is not
good because of security probems.
that is other files can also acces the variable.
how can i acces a variable of another file by another
file ...
please explain with example..


________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/cppug/
  
   To unsubscribe from this group, send an email to:
[email protected]
  
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


		
---------------------------------
Yahoo! Mail Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.