How to use varible which is from different program?
Question
Collapse
X
-
Tags: None
-
If you followed the Posting Guidelines then we might have been able to answer your question by now...
Anyway, please do so in the future. Thanks!Comment
-
Put these variables in a .cpp file by themselves.Originally posted by vikram sadashiv sawantHow to use varible which is from different program?
Use extern in the other .cpp files
Then just add this .cpp with the variables to the build of any program.
Later, you can learn how to avoid this and use a library instead.Comment
Comment