I have a main c++ file with all my integer values, then I have a seperate c++ file with my algorithms for my battle function. May seem like a simple question, but how do I get the values from my main c++ file and use them in the other one and visa versa? Code snippets welcome, and help would be graciously accepted.
valestrom 17 Junior Poster in Training
Recommended Answers
Jump to Post
extern
the variables in question. Look it up...
All 2 Replies
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
valestrom commented: Made me look, but still very helpful +1
valestrom 17 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.