sharing variables across mulitple files
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 7 articles for 2.081 sec
Re: sharing variables across mulitple files     

Group: comp.lang.c++ · Group Profile · Search for sharing variables across mulitple files in comp.lang.c++
Author: Jim Langston
Date: May 6, 2008 03:07

awhan.iitk@gmail.com wrote: I have a set of variables that I want to share across mulitple c++ files. I was using the extern method so far. Is there any other way to do the same. The variables are not constants and I get the values during ...the way you do it normally, other than passing the variables as parameters. -- Jim Langston tazmaster@rocketmail.com
Show full article (0.39Kb) · Show article thread
sharing variables across mulitple files     

Group: comp.lang.c++ · Group Profile · Search for sharing variables across mulitple files in comp.lang.c++
Author: awhan.iitk
Date: May 6, 2008 02:58

I have a set of variables that I want to share across mulitple c++ files. I was using the extern method so far. Is there any other way to do the same. The variables are not constants and I get the values during run time.
Show full article (0.22Kb)
Re: sharing variables across mulitple files     

Group: comp.lang.c++ · Group Profile · Search for sharing variables across mulitple files in comp.lang.c++
Author: dizzy
Date: May 7, 2008 01:39

...: I have one project where I am forces to use global variables because of the engine I am using having multiple callbbacks and it's ... the data. One thing I did was I put all the global variables in a structure and have just one instance of the structure. I'm ... the callback to the callback. Yeah, organizing the data to be shared in a struct may help (it is usually required with the "...
Show full article (1.05Kb) · Show article thread
Re: sharing variables across mulitple files     

Group: comp.lang.c++ · Group Profile · Search for sharing variables across mulitple files in comp.lang.c++
Author: Cynic
Date: May 6, 2008 19:26

... normally, other than passing the variables as parameters. -- Jim Langston tazmas...@... not want to pass the variables all the time. the reason...learning that memory for global variables is reserved in the heap...and a lot of global variables can create problems for a...analysis and maintenance harder. Sometimes sharing is unavoidable, of course. I...
Show full article (1.63Kb) · Show article thread
Re: sharing variables across mulitple files     

Group: comp.lang.c++ · Group Profile · Search for sharing variables across mulitple files in comp.lang.c++
Author: Jim Langston
Date: May 6, 2008 05:50

...it normally, other than passing the variables as parameters. -- Jim Langston tazmas...@...after learning that memory for global variables is reserved in the heap ... and a lot of global variables can create problems for a ... analysis and maintenance harder. Sometimes sharing is unavoidable, of course. I ... am forces to use global variables because of the engine I ...
Show full article (1.33Kb) · Show article thread
Re: sharing variables across mulitple files     

Group: comp.lang.c++ · Group Profile · Search for sharing variables across mulitple files in comp.lang.c++
Author: Pete Becker
Date: May 6, 2008 04:00

... normally, other than passing the variables as parameters. -- Jim Langston tazmas...@... not want to pass the variables all the time. the reason i... learning that memory for global variables is reserved in the heap ... and a lot of global variables can create problems for a ... analysis and maintenance harder. Sometimes sharing is unavoidable, of course. -- Pete ...
Show full article (1.07Kb) · Show article thread
Re: sharing variables across mulitple files     

Group: comp.lang.c++ · Group Profile · Search for sharing variables across mulitple files in comp.lang.c++
Author: awhan.iitk
Date: May 6, 2008 03:26

... way you do it normally, other than passing the variables as parameters. -- Jim Langston tazmas...@rocketmail.com thanks for ... mentioned that i did not want to pass the variables all the time. the reason i am looking for alternate ways is after learning that memory for global variables is reserved in the heap and a lot of global variables can create problems for a program.
Show full article (0.51Kb) · Show article thread