I'm looking for the same solution basically but he has seemed to have found it already.
I am fairly fluent in C++ but am completely new to Visual C++.
I want to create structs in my main as such
And be able to call the values of e and n from my form.h when I click a button.Code:struct Person { public: int e, n; };
What is the syntax to communicate between the two files?
You are asking a program "variable scope" question.What is the syntax to communicate between the two files?
http://en.wikipedia.org/wiki/Scope_(programming)
The exact location and permissions will depend on what other code requires access to the variable and your program design.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks